Ethereal-dev: Re: [Ethereal-dev] Remove compiler warnings by adding #include <string.h>

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 17 Nov 2000 10:19:14 -0800 (PST)
> Hi,
> According to the Single Unix Specification, v2 at:
> http://www.opengroup.org/onlinepubs/007908799/
> 
> memcpy() and memcmp() are in string.h,

According to ANSI X3.159-1989, American National Standard for
Information Systems -- Programming Language -- C, and presumably
according to the ISO version of said standard, and its C99 successor,
"memcpy()" and "memcmp()" are in "string.h", so any platform where
they're *not* in "string.h" is probably really depressingly old and
tired.

> Would it be OK to add the appropriate include in the following files?

Yes.

> Would it break things under Windows?

Extremely unlikely - that'd be the case only if the suppliers of C
compilers for Windows have managed not to implement ANSI C.