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 Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <sys\types.h>
    #include <direct.h>
    int rmdir( const char *path );
    int _wrmdir( const wchar_t *path );

Description:
    The rmdir function removes (deletes) the specified directory.  The
    directory must not contain any files or directories.  The path can be
    either relative to the current working directory or it can be an
    absolute path name.

    The _wrmdir function is identical to rmdir except that it accepts a
    wide-character string argument.

Returns:
    The rmdir function returns zero if successful and -1 otherwise.

Errors:
    When an error has occurred,  errno contains a value indicating the type
    of error that has been detected.

Example:
    To remove the directory called \watcom on drive C:

    #include <sys\types.h>
    #include <direct.h>

    void main()
      {
        rmdir( "c:\\watcom" );
      }

    Note the use of two adjacent backslash characters (\) within
    character-string constants to signify a single backslash.

Classification:
    rmdir is POSIX 1003.1, _wrmdir is not POSIX

Systems:
     rmdir - All, Netware

    _wrmdir - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32

See Also:
    chdir, chmod, getcwd, mkdir, stat, umask

See Also: umask

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