TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: andrew clarke
from: Neil Heller
date: 2003-07-23 12:10:02
subject: Creating a directory

NH> Is there a "standard" way of dealing with directory creation?

ac> This is from the mkdir(2) man page in FreeBSD.  See 
ac> "standards" below.  Most UNIX-like operating systems will 
ac> have an identical function.  DOS/OS2/Windows compilers may 
ac> differ though (usually omitting the mode argument 
ac> entirely), ie. they may not conform to the POSIX standard.

ac> SYNOPSIS
ac>      #include 
ac>      #include 

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

This is interesting.

The version of MSVC that I use doesn't have a help listing for mkdir() 
but DOS for _mkdir().  Nonetheless, I used mkdir() and there was no 
complaint for the compiler (with full warnings enabled).

#include 

int mkdir( char * DirectoryName);

Does unix have a library called "direct".

þ CMPQwk 1.42 999

--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.