www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/13/13:39:55

Xref: news2.mv.net comp.os.msdos.djgpp:3792
From: Dieter Demerre <Dieter DOT Demerre AT cs DOT kuleuven DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: where to find the header for int mkdir()?
Date: Mon, 13 May 1996 16:37:47 +0200
Organization: K.U.Leuven
Lines: 22
Message-ID: <3197493B.2781E494@cs.kuleuven.ac.be>
NNTP-Posting-Host: pluto.cs.kuleuven.ac.be
Mime-Version: 1.0
CC: Dieter DOT Demerre AT cs DOT kuleuven DOT ac DOT be
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

While porting my program from BC3.1 to DJGPP v2, I got the
warning of an implicit declaration of int mkdir(...).
When I grep-ed the include-directory, I found that in 
sys/stat.h there's a prototype for mkdir(char*,int,int);.
while in BC3.1 there's int mkdir(char*) in dir.h

If I include sys/stat.h, I get the message that there are too
few arguments to mkdir("testfile").

If I do not include anything special, apparently the correct
mkdir is included from a library since the action is performed
correctly.

Anyhow, where should int mkdir() be defined ?

-- 
Greetings from = Groetjes vanwege
--------------------------------------------
Dieter Demerre
Email : Dieter DOT Demerre AT cs DOT kuleuven DOT ac DOT be
http  : www.cs.kuleuven.ac.be/~demerre
--------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019