SysRemove
From WhitixDoc
< System calls | Calls
SysRemove removes a filesystem object.
Contents |
Syntax
int SysRemove( char* fileName )
Parameters
- fileName. The name of the filesystem object to be created or opened. The length of the string is limited to PATH_MAX (typically 2048) bytes by the kernel.
Returns
Returns 0 if the filesystem object was removed.
If the filesystem object cannot be removed, one of the standard error codes will be returned.
Example
This example removes an application data file.
int ret=SysRemove("/Applications/Shell/history"); if (ret < 0) { /* Failure */ }