delete a file
#include <stdio.h> int remove( const char *filename );
The remove() function deletes the file whose name is the string pointed to by filename.
Zero if the operation succeeds, nonzero if it fails. When an error has occurred, errno indicates the type of error detected.
#include <stdio.h> void main() { remove( "vm.tmp" ); }
ANSI
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |