On Wed, Apr 25, 2001 at 09:50:22PM +1000, Kevin Easton wrote: > Of course, if you don't include the declaration of atof (which is what's in > stdlib.h), then the compiler can't check the type and number of parameters, > and the type of the return value of the function.
When I was checking return type by gdb using correctly compiled one, it returns int on whatis atof(). Even more confusing, set x=atoi("123.456") does not work in correct program/gdb and return same result as incorrect program. Is this gdb thing??? Osamu -- ~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ + Osamu Aoki <[EMAIL PROTECTED]>, GnuPG-key: 1024D/D5DE453D + + My debian quick-reference, http://www.aokiconsulting.com/quick/ +