]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/strncmp.c
sphinx: remove texinfo files
[thirdparty/gcc.git] / libiberty / strncmp.c
index ad87e1fde8ba704aa7ca64f9ca3b9cb8e157a268..23f6df617562fed3c3b07ecb28361a5709a1a09c 100644 (file)
@@ -3,7 +3,8 @@
 
 /*
 
-@deftypefn Supplemental int strncmp (const char *@var{s1}, const char *@var{s2}, size_t @var{n})
+@deftypefn Supplemental int strncmp (const char *@var{s1}, @
+  const char *@var{s2}, size_t @var{n})
 
 Compares the first @var{n} bytes of two strings, returning a value as
 @code{strcmp}.
@@ -13,16 +14,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;