delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/08/18:16:22

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Simple MKDIR problem
Date: Fri, 08 Oct 1999 13:25:55 -0700
Organization: Harvey Mudd College
Lines: 22
Message-ID: <37FE5353.A35D60A3@hmc.edu>
References: <37FE2700 DOT 9875C024 AT pd DOT jaring DOT my>
NNTP-Posting-Host: mercury.st.hmc.edu
Mime-Version: 1.0
X-Trace: nntp1.interworld.net 939414391 63293 134.173.45.219 (8 Oct 1999 20:26:31 GMT)
X-Complaints-To: usenet AT nntp1 DOT interworld DOT net
NNTP-Posting-Date: 8 Oct 1999 20:26:31 GMT
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.13pre12 i586)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

dsk wrote:
> 
> Here's the simple code
> 
> void _mkdir(char *dir)
> {
>   _REGS r;
>   r.h.ah = 0x39;
>   r.x.ds = (ulong)(dir) >> 16;
>   r.x.dx = (ulong)(dir) & 15;
> _int(0x21, r);
>   printf("\nError number: %d %s", r.x.ax);
> }
> 
> When I ran it _mkdir("c:\\test\\somethin"), it just return error 3 (path
> not found). Why??

Read FAQ sections 18.2 and 18.4.
-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


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