From: j DOT aldrich6 AT genie DOT com Message-Id: <199605150100.AA037902045@relay1.geis.com> Date: Wed, 15 May 96 01:02:00 UTC 0000 To: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Subject: Re: where to find the header f Reply to message 1460608 from UCKO AT VAX1 DOT ROC on 05/14/96 12:20AM >>This is very dangerous! Your program is linking in the DJGPP >>version of mkdir, which expects ( char*, int, int ), and passing it >>( char * ). Fortunately, this doesn't appear to result in any serious >>problems in your program, but it is a surefire guarantee of >>crashes if done too often. > >it's (char *, int), not (char *, int, int). Sorry - I didn't pause to look it up, just quoted him. :) >Anyway, this is perfectly safe; >the second argument is meaningless under DOS and hence ignored, and DJGPP >uses the C calling convention, in which the caller pops arguments, so the >stack cannot be messed up. Even so, calling functions w/o prototypes is a very bad way to do things in general. What if the posix version of mkdir had taken (int, char*)? *BOOM* John