delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/30/12:15:51

Date: Wed, 30 Jun 93 10:54:47 CDT
From: "Jeremy Mathers" <pynq AT midway DOT uchicago DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: The continuing saga of getcwd()

(I lost the attribution of the guy who suggested a libunix.a with wrapper
functions for _dos_function(), but following up on his idea:)

Since the primary purpose of DJGPP is to port Unix software to DOS (I'm
sure some will object to this assertion...), I think the default names ought to
get functions with Unix-like behavior.  Versions that give behavior
unique to DOS ought to have the _dos_ prefix.  This follows the trend, BTW,
in, e.g., Microsoft C, wherer all the DOS specific stuff has the _dos_
prefix.

Thus, if you want a version of getcwd() that returns a drive letter, you
are just going to have to call _dos_getcwd().

- Raw text -


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