Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 153 -
6. Input/output
( stdio.h )
------------------------------------------------------------------------------
6.1 Delete a file. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
remove
[Syntax]
#include <stdio.h>
int remove( const char *path ) ;
[Arguments]
path Pathname of a file to be deleted.
[Return]
Returns zero if a file has been successfully deleted. If not, returns
-1 and sets an one of following values in the global variable "errno".
Symbol Meaning
---------------+-----------------------------------------------------
EACCES Specified file is a Read-Only file.
ENOENT Specified file or path does not exist, or "path" is
a directory.
[Description]
Deletes a file specified by "path".