Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

system_rename() Function

The system_rename function renames a file. This function does not work on directories if the old and new directories are on different file systems.


int system_rename(char *old, char *new);

Return Values

0 if the operation succeeds, or -1 if the operation fails.


char *old is the old name of the file.

char *new is the new name for the file.