2009-07-02 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / libiberty / strncmp.c
index ad87e1fde8ba704aa7ca64f9ca3b9cb8e157a268..916c2f07a8a88cf8213c1c4e338a7cb9a13f19b4 100644 (file)
@@ -13,16 +13,10 @@ Compares the first @var{n} bytes of two strings, returning a value as
 */
 
 #include <ansidecl.h>
-#ifdef ANSI_PROTOTYPES
 #include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
 
 int
-strncmp(s1, s2, n)
-     const char *s1, *s2;
-     register size_t n;
+strncmp(const char *s1, const char *s2, register size_t n)
 {
   register unsigned char u1, u2;
 
This page took 0.023111 seconds and 4 git commands to generate.