◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── The mkdir function creates a new directory with the specified <dirname>. Only one directory can be created at a time, so only the last component of <dirname> can name a new directory. The mkdir function does not do any translation of path-name delimiters. Both DOS and OS/2 accept either "\" or "/" internally as valid delimiters within path names. Return Value The mkdir function returns the value 0 if the new directory was created. A return value of -1 indicates an error, and errno is set to either EACCES or ENOENT. -♦-