remove directory entry

You're viewing an older version of this page (#3270). View the current version.

View versions (4)

NAME

<span class="Nm" id="remove">remove</span>

INTERFACE

#include <stdio.h> int remove ( const char *path )

DESCRIPTION

The remove function removes the file or directory specified by &#92;c path. &#92;n &#92;n If &#92;c path specifies a directory, remove ( <span class="Fn">path</span> ) is the equivalent of rmdir ( <span class="Fn">path</span> ). Otherwise, it is the equivalent of unlink ( <span class="Fn">path</span> ).

RETURN VALUES

<span class="Rv">-std</span> <span class="Rv">remove</span>

ERRORS

The remove function may fail and set <span class="Va">errno</span> for any of the errors specified for the routines reference:lstat (2) , reference:rmdir (2) or reference:unlink (2) .

SEE ALSO

reference:rmdir (2) , reference:unlink (2)

STANDARDS

The remove function conforms to and