[ale] compile error: strlcpy defined differently in 2 different files, huh ?
Christopher Fowler
cfowler at outpostsentinel.com
Mon Feb 6 14:51:51 EST 2006
Also read this:
http://www.courtesan.com/todd/papers/strlcpy.html
On Mon, 2006-02-06 at 14:35 -0500, Christopher Fowler wrote:
> It looks like you have to make modifications somewhere.
>
> It seems to me that you should call strncpy() instead in the app.
> Anywhere in the app that you call strlcpy with 3 arguments matching the
> prototype then simply change strlcpy to strncpy.
>
>
> On Mon, 2006-02-06 at 14:25 -0500, Courtney Thomas wrote:
> > In trying to compile the HP calculator simulator nonpareil-0.77, I get
> > the error:
> >
> > error: conflicting type for 'strlcpy'
> >
> >
> >
> > and strlcpy is defined in string.h & util.h......
> >
> > /usr/include/string.h
> >
> > as -> size_t strlcpy(char *, const char *, size_t);
> >
> > whereas,
> >
> > util.h ; in the app source
> >
> > as -> char *strlcpy(char *dest, const char *src, size_t l);
> >
> >
> >
> > What is the resolution of this without either compromising the
> > application of the /usr/include/string definition ?
> >
> > Appreciatively,
> >
> > Courtney
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list