Misplaced Pages

remove (C)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by 1exec1 (talk | contribs) at 17:10, 9 August 2010 (added specification of error codes). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 17:10, 9 August 2010 by 1exec1 (talk | contribs) (added specification of error codes)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

remove is a function in C programming language that removes a certain file.

The prototype of the function is as follows:

int remove ( const char * filename );

If successful, the function returns zero. Nonzero value is returned on failure and errno variable is set to corresponding error code.