4.11.5. rename()

This is the standard C library rename() function from stdio.h.


int rename(const char *old, const char *new);


rename() causes the file whose name isthe string pointed to by old to be subsequently known by the name given by the string pointed to by new. The file named old is effectively removed. If a file named by the string pointed to by new exists prior to the call of the rename function, the behavior is implementation-defined.


Returns zero if the operation succeeds or nonzero if it fails. If nonzero and the file existed previously it is still known by its original name.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D