Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdio.h>
    int rename( const char *old, const char *new );

Description:
    The rename function causes the file whose name is indicated by the
    string old to be renamed to the name given by the string new.

Returns:
    The rename function returns zero if the operation succeeds, a non-zero
    value if it fails.  When an error has occurred,  errno contains a value
    indicating the type of error that has been detected.

Example:
    #include <stdio.h>

    void main()
      {
        rename( "old.dat", "new.dat" );
      }

Classification:
    ANSI

Systems:
    All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson