aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1-5666.3/libiberty/strncmp.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-06-17 11:09:54 -0700
committerDan Albert <danalbert@google.com>2015-06-17 14:15:22 -0700
commitf378ebf14df0952eae870c9865bab8326aa8f137 (patch)
tree31794503eb2a8c64ea5f313b93100f1163afcffb /gcc-4.2.1-5666.3/libiberty/strncmp.c
parent2c58169824949d3a597d9fa81931e001ef9b1bd0 (diff)
downloadtoolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.gz
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.bz2
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.zip
Delete old versions of GCC.
Change-Id: I710f125d905290e1024cbd67f48299861790c66c
Diffstat (limited to 'gcc-4.2.1-5666.3/libiberty/strncmp.c')
-rw-r--r--gcc-4.2.1-5666.3/libiberty/strncmp.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc-4.2.1-5666.3/libiberty/strncmp.c b/gcc-4.2.1-5666.3/libiberty/strncmp.c
deleted file mode 100644
index 916c2f07a..000000000
--- a/gcc-4.2.1-5666.3/libiberty/strncmp.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* strncmp -- compare two strings, stop after n bytes.
- This function is in the public domain. */
-
-/*
-
-@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}.
-
-@end deftypefn
-
-*/
-
-#include <ansidecl.h>
-#include <stddef.h>
-
-int
-strncmp(const char *s1, const char *s2, register size_t n)
-{
- register unsigned char u1, u2;
-
- while (n-- > 0)
- {
- u1 = (unsigned char) *s1++;
- u2 = (unsigned char) *s2++;
- if (u1 != u2)
- return u1 - u2;
- if (u1 == '\0')
- return 0;
- }
- return 0;
-}