projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas: avoid spurious failures in non-ELF targets in the SPARC testsuite.
[deliverable/binutils-gdb.git]
/
libiberty
/
strncmp.c
diff --git
a/libiberty/strncmp.c
b/libiberty/strncmp.c
index 819cea6cb58be2a9fd5f0f96ae4245514e091837..23f6df617562fed3c3b07ecb28361a5709a1a09c 100644
(file)
--- a/
libiberty/strncmp.c
+++ b/
libiberty/strncmp.c
@@
-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}.
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>
*/
#include <ansidecl.h>
-#ifdef __STDC__
#include <stddef.h>
#include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
int
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;
{
register unsigned char u1, u2;
This page took
0.024746 seconds
and
4
git commands to generate.