Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stc!datlog!scm From: scm@dlcq15.datlog.co.uk (Steve Mawer) Newsgroups: comp.lang.c Subject: Re: Re*2: an elementary question concerning double indirection Keywords: strtol Message-ID: <1990Mar7.121845.19526@dlcq15.datlog.co.uk> Date: 7 Mar 90 12:18:45 GMT References: <8146@hubcap.clemson.edu> <1458@amethyst.math.arizona.edu> <1990Feb27.110204.1415@uwasa.fi> Reply-To: scm@datlog.co.uk (Steve Mawer) Organization: Data Logic Ltd, Queens House, Harrow, Middlesex, HA1 1YR Lines: 13 In article <1990Feb27.110204.1415@uwasa.fi> fs@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 or < {backbone}!ukc!datlog!scm > Voice: +44 1 863 0383 (x2153)