atof() in SCO UNIX DEV

Sean Fagan seanf at sco.COM
Wed Oct 24 16:44:02 AEST 1990


In article <orthodontist at dce.ie> em at dce.ie (Eamonn McManus) writes:
>SCO Unix has a compiler that makes a feeble pretense at being ANSI.  It's
>ridiculously inept in some areas.  Look at the definition of offsetof() in
><stddef.h> for example: it evaluates to a (char *) instead of an integer.

Actually, it evaluates to a void*, not a char*.  (We forgot to put in the
cast, it looks like; a simple enough fix if you run into problems with it,
in this respect.)  If you want to be more precice, it evaluates to a
<type-of-member>*.

>I would advise anyone writing C programs on this system to get the GNU
>C compiler.

Provided, of course, they don't want to be compatable with the system,
that's a pretty decent suggestion.  And, of course, they cannot develop DOS,
'286, or OMF products using gcc.

-- 
-----------------+
Sean Eric Fagan  | "*Never* knock on Death's door:  ring the bell and 
seanf at sco.COM    |   run away!  Death hates that!"
uunet!sco!seanf  |     -- Dr. Mike Stratford (Matt Frewer, "Doctor, Doctor")
(408) 458-1422   | Any opinions expressed are my own, not my employers'.



More information about the Comp.unix.sysv386 mailing list