Sun Java System Web Server 6.1 SP9 NSAPI Programmer's Guide

system_rename

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

Syntax

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

Returns

0 if the operation succeeded, or -1 if the operation failed.

Parameters

char *old is the old name of the file.

char *new is the new name for the file.