What is the correct prototype of md_atof?

Ian Lance Taylor ian@wasabisystems.com
Wed Nov 19 23:53:00 GMT 2003


Kazu Hirata <kazu@cs.umass.edu> writes:

> > If we convert to C90 and use a prototype style definition, then we can
> > safely switch to `char'.
> 
> The only reason why I said "char" is correct is that the first
> argument contains a character.  "int" wouldn't be wrong, but I am not
> comfortable with the mismatch between the definition and the
> prototype.  Should I change every md_atof to use char for the first
> argument?

Yes, provided every md_atof uses a prototype style definition.

Ian



More information about the Binutils mailing list