CARDRename

C Specification

#include <revolution/card.h>
s32 CARDRename(s32 chan, const char* oldName, const char* newName);

Arguments

chan EXI channel number.
oldName Pointer to the file name to rename.
newName Pointer to the new file name.

Return Values

One of the following codes:

CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_NOFILE
CARD_RESULT_NOPERM
CARD_RESULT_BUSY
CARD_RESULT_EXIST
CARD_RESULT_NAMETOOLONG
CARD_RESULT_IOERROR
CARD_RESULT_READY

Description

Synchronously renames a file.

Note: This function is provided for debugging. Do not use in programs.

See Also

Revision History

03/01/2006 Initial version.