www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/28/11:09:45

Date: Mon, 28 Jun 93 10:25:49 EDT
From: dave AT echologic DOT com (Dave Hayden 908- 946-1107)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: getcwd -- to drive: or not to drive:

It seems to me that the best way to resolve the getcwd() problem is to create
a second library, something like libdos.a.  This would contain a getcwd() that
behaves like the "standard" dos function instead of the standard unix function.
The library would contain any other functions that work differently in DOS
than they do in UNIX.

Now if you are porting a DOS program, link with libdos.a before the
other libraries.  If you are porting a UNIX program, leave libdos.a
out.

Dave



- Raw text -


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