bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strcasestr compilation problem


From: Ben Pfaff
Subject: Re: strcasestr compilation problem
Date: Wed, 31 Aug 2005 09:45:58 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

address@hidden (James Youngman) writes:

> I haven't checked the code, but I suspect that a better choice would
> be to include <stdlib.h> which must also #define NULL.  That way you
> end up with less other stuff being included without necessity and the
> code stands a greater chance of working when compiled in a stand-alone
> environment (not that gnulib is really designed for such an
> environment).

If you're looking for a header that defines NULL and not much
else, then you really want <stddef.h>.
-- 
"[I]n this era of constant innovation,
 it takes a special kind of person to look evolution in the eye
 and say "huh?"."
--Chris Hacking





reply via email to

[Prev in Thread] Current Thread [Next in Thread]