summaryrefslogtreecommitdiff
path: root/gnu/dist/gawk/missing/memcmp.c
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2003-10-06 18:27:45 +0000
committerwiz <wiz@NetBSD.org>2003-10-06 18:27:45 +0000
commitda70036ee94e432902e767faebb6ddfa96e394fc (patch)
tree861b42be0c6773a24091832795aa2cd04dab1ebd /gnu/dist/gawk/missing/memcmp.c
parent244b99489257b8a234308dde6d1fa33ff65edf4b (diff)
Obsoleted by the update to 3.1.3 (moved to missing_d dir).
Diffstat (limited to 'gnu/dist/gawk/missing/memcmp.c')
-rw-r--r--gnu/dist/gawk/missing/memcmp.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gnu/dist/gawk/missing/memcmp.c b/gnu/dist/gawk/missing/memcmp.c
deleted file mode 100644
index 63cb5f8f740..00000000000
--- a/gnu/dist/gawk/missing/memcmp.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * memcmp --- compare strings.
- *
- * We use our own routine since it has to act like strcmp() for return
- * value, and the BSD manual says bcmp() only returns zero/non-zero.
- */
-
-int
-memcmp (s1, s2, l)
-register char *s1, *s2;
-register int l;
-{
- for (; l-- > 0; s1++, s2++) {
- if (*s1 != *s2)
- return (*s1 - *s2);
- }
- return (0);
-}