www.delorie.com/djgpp/doc/libc-2.01/libc_464.html   search  
Go to the first, previous, next, last section, table of contents.


mkdir

Syntax

#include <sys/stat.h>

int mkdir(const char *path, mode_t mode);

Description

This function creates a subdirectory. The mode field is ignored under MS-DOS.

Return Value

Zero if the subdirectory was created, nonzero on failure.

Example

mkdir("/usr/tmp", S_IWUSR);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997