Datasheet

The C and C++ Libraries
4-88 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.11.5 rename()
This is the standard C library
rename()
function from
stdio.h
.
Syntax
int rename(const char *old, const char *new)
Implementation
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
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.
4.11.6 system()
This is the standard C library
system()
function from
stdlib.h
.
Syntax
int system(const char *string)
Implementation
system()
passes the string pointed toby
string
to the host environment to be executed
by a command processor in an implementation-defined manner. A null pointer can be
used for
string
, to inquire whether a command processor exists.
Returns
If the argument is a null pointer, the system function returns nonzero only if a command
processor is available.
If the argument is not a null pointer, the system function returns an
implementation-defined value.