Home >Backend Development >C#.Net Tutorial >What does remove mean?
remove is a function in C language. Its general function is to delete all elements of arrays and linked list objects. The function prototype is [intremove (char*filename)].
Function function
remove() function is used to delete the specified file. Its prototype is as follows:
int remove(char *filename);
Function declaration 2:
template<classPath>inline bool remove(const Path &Pval);
Function parameters
filename is the name of the file to be deleted, which can be a directory. If the parameter filename is a file, call unlink() for processing; if the parameter filename is a directory, call rmdir() for processing.
Function return value
Returns 0 if successful, -1 if failed, and the error reason is stored in errno.
Function error code
● EROFS The file to be written is a read-only file.
● EFAULT parameter filename pointer exceeds the accessible memory space.
● ENAMETOOLONG parameter filename is too long.
● ENOMEM Insufficient core memory.
● The ELOOP parameter filename has too many symbolic connections.
● EIO I/O access error.
The above is the detailed content of What does remove mean?. For more information, please follow other related articles on the PHP Chinese website!