From: Richard Heathfield on
Owner wrote:
> On Thu, 10 Jun 2010 22:41:26 +0100, Richard Heathfield wrote:
>
>> Owner wrote:
>>> On Thu, 10 Jun 2010 18:37:22 +0100, Richard Heathfield wrote:
>>>
>>>
>>>> Owner wrote:
>>>>> Can anyone recommend a web site or a book that concentrating
>>>>> on stuffs like creating directories, files etc with win32
>>>>> api in console?
>>>>>
>>>>> I got the book "programming windows 5th ed." but it doesn't
>>>>> talk about creating directories.
>>>>>
>>>>> All I want to do with win32 console is manipulate directories
>>>>> and files.
>>>> What's wrong with _mkdir()?
>>> That's the stuff I was lookin for. Now is there Any book or
>>> tutorial includes topic about _mkdir?
>>
>> What's to tute?
>>
>> char mynewdirectory[] = "c:\\this\\that\\theother";
>> if(_mkdir(mynewdirectory) == 0)
>> {
>> puts("Whoopee!");
>> }
>> else
>> {
>> fputs("Oh.\n", stderr);
>> }
>
> I just learned that _mkdir is part of C runtime library.

Well, it's part of Microsoft's C runtime library. It isn't included in
the definition of the C language, but is a Microsoft extension.
(Borland's is similar - it's called mkdir(), without the leading
underscore.)

> (this is the first time I heard of)
>
> is there a book dedicated for CRT?

MSDN is probably your best bet.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within
From: Richard Heathfield on
Owner wrote:
>
> Another question. Where did you learn existence of _mkdir?

Mists of time and all that, but *probably* from reading the manual, in
the days when compilers came with manuals.

> has _mkdir been existed since dos? I'm trying to
> find out which books I should look for where from.

MSDN.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within
From: Ben Pfaff on
Owner <Owner(a)Owner-PC.com> writes:

> Another question. Where did you learn existence of _mkdir?
> has _mkdir been existed since dos? I'm trying to
> find out which books I should look for where from.

The POSIX (UNIX) API has a function named mkdir(). The Microsoft
C runtime library has imitated the POSIX one to some extent for a
long time, but often the MS functions have a "_" prefix. (It's a
good thing, too, in this case, because POSIX mkdir() has two
parameters whereas I suspect that _mkdir() only has one.)
--
Ben Pfaff
http://benpfaff.org