Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - mkdir http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   mkdir

   Usage
   #include <direct.h>
   int mkdir(char *pathname);

   Description
   mkdir  creates a new directory as specified by the pathname  argument.
   If pathname contains more than one directory component, then only  the
   last  component  may be new. All preceding components  must  refer  to
   existing directories.

   Example
   #include <stdio.h>
   #include <direct.h>
   main()
   {
   int result;
        result = mkdir("\\temp");
        if(result == 0)
             printf("Directory \\temp created\n");
        else
             printf("Could not create directory \\temp\n");
   }

   Return Value
   Returns  a  0  if  the directory was created  successfully.  A  -1  is
   returned if an error occurred, and errno is set.


See Also: rmdir chdir

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