This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: small libf2c cleanups
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: small libf2c cleanups
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 16 Oct 1997 14:49:52 -0600
- cc: Dave Love <d dot love at dl dot ac dot uk>, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
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