[comp.sys.ibm.pc] Is there a bug in getenv

lane@cs.dal.ca (John Wright/Dr. Pat Lane) (07/07/89)

I'm playing with a C program (CDD.C from the SIMTEL archives) written for
Turbo C (don't know what version but it was written in 1987).  It has its
own version of the std library function getenv() with the comment "a bug
workaround".  Could someone enlighten me as to the nature of this alleged
bug, whether it has been fixed in current versions of Turbo C, and whether
it is a problem in Microsoft C 5.0 (which is what I'm using).

Secondary questions as I'm a bit green at C in MSDOS, haven't read the
manual yet (hanging head in shame) and since I'm posting anyway:
- I found I had to change alot of library function names, etc. in going
  from Turbo to Microsoft; is this to be expected or was I missing a 
  "compatability mode" or something; are other versions of C equally
  different in such aspects; is any one MSDOS C package notably closer
  to UNIX "standard" C than the others?
- Can I/How can I convert the EXE file that Microsoft C's linker produces
  to a COM file, like Turbo C produces?

Many thanks as always.

John Wright      //////////////////     Phone:  902-424-3805  or  902-424-6527
Post: c/o Dr Pat Lane, Biology Dept, Dalhousie U, Halifax N.S., CANADA B3H-4H8 
Cdn/Eannet:lane@cs.dal.cdn  Uucp:lane@dalcs.uucp or {uunet watmath}!dalcs!lane
Arpa:lane%dalcs.uucp@uunet.uu.net  Internet:lane@cs.dal.ca
-- 
John Wright      //////////////////     Phone:  902-424-3805  or  902-424-6527
Post: c/o Dr Pat Lane, Biology Dept, Dalhousie U, Halifax N.S., CANADA B3H-4H8 
Cdn/Eannet:lane@cs.dal.cdn  Uucp:lane@dalcs.uucp or {uunet watmath}!dalcs!lane
Arpa:lane%dalcs.uucp@uunet.uu.net  Internet:lane@cs.dal.ca