Re*2: an elementary question concerning double indirection

Steve Mawer scm at dlcq15.datlog.co.uk
Wed Mar 7 22:18:45 AEST 1990


In article <1990Feb27.110204.1415 at uwasa.fi> fs at uwasa.fi (Filip Sawicki LAKE) writes:
>
>According to the SUN manual, strtod returns ptr==string if string is 
>completely inconvertible, otherwise ptr points to the first wrong character.

Beware!  I used strtol() on 2.2.1 RT AIX and found that the returned pointer
from the string "\n\0" pointed to the *null*, not the newline.  The code
affected had been ported to a number of environments and AIX was the only
one thus afflicted.

-- 
Steve C. Mawer        <scm at datlog.co.uk> or < {backbone}!ukc!datlog!scm >
                       Voice:  +44 1 863 0383 (x2153)



More information about the Comp.lang.c mailing list