small libf2c cleanups

Jeffrey A Law law@cygnus.com
Thu Oct 16 15:19:00 GMT 1997


  In message < 19971015233038.26757@dot.cygnus.com >you write:
  > On Wed, Oct 15, 1997 at 10:23:20PM +0100, Dave Love wrote:
  > I guess the question is: what information is intended to be returned?
  > 
  > Thing is, I don't know that there's really anything to change it to.
  > There's no pointer-sized-integer type is there?  
We could create one.


  > >  >> * libI77/fio.h: Include <string.h> if STDC_HEADERS.
  > > 
  > > Is this actually necessary?
  > 
  > One of the files, I forget which now, used one of the mem functions
  > without including <string.h>.  Will the library work without the 
  > include?  Yes.  But why?  You've already got the autoconf detection
  > macro already.
Also note that using them without a prototype can lead to problems
on some systems.  Like when size_t isn't the same size as an int
and you try to do something like strncpy (foo, bar, 5)


jeff



More information about the Gcc mailing list