Author: Eugene Nalimov
Date: 19:40:43 09/17/99
Go up one level in this thread
mkdir() is not ANSI C function, it's just Unix extension of it (maybe even Posix, I don't know). So you can use either system-specific API call (CreateDirectory() at Windows, mkdir() at Unix, etc), or use "system" call and hope that if something will go wrong system will return proper error code. Eugene On September 17, 1999 at 22:18:48, Robert Hyatt wrote: >On September 17, 1999 at 20:34:44, James Robertson wrote: > >>On September 17, 1999 at 19:57:45, Eugene Nalimov wrote: >> >>>Use CreateDirectory() Win32 API function. >>> >>>Eugene >>> >>>On September 17, 1999 at 19:53:31, James Robertson wrote: >>> >>>>How should I create/delete directories in a Win32 Console program? >>>> >>>>Thanks, >>>>James >> >>Thanks. Is there any way to create a directory without using a Win32 API >>function? >> >>James > > >I believe that the ANSI-compliant method is the "mkdir()" system call... it >works in every system I have tried it on. > >or you can use the uglier system("mkdir newdir"); command although I hate that >from an operating system perspective, as it is horribly inefficient.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.