NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO | STANDARDS
$(OS_DIR)/lib/libc.a #include <stdio.h>int remove(const char *path);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The remove() function is an alias for the unlink(2POSIX) system call. It deletes the file referenced by path.
Upon successful completion, remove() returns 0. Otherwise, -1 is returned and the global variable errno is set to indicate the error.
The remove() function may fail and set errno for any of the errors specified for the routine unlink(2POSIX).
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
The remove() function conforms to ANSI-C.
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO | STANDARDS