summaryrefslogtreecommitdiff
path: root/missing/memcmp.c
diff options
context:
space:
mode:
author(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 06:08:24 +0000
committer(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 06:08:24 +0000
commitddbfc05cf0b29bab5eda555ed37c45563a91af14 (patch)
tree2cff3eaf0722310b60eae38fbcebdfa7ad7c172a /missing/memcmp.c
parent62e648e148b3cb9f96dcce808c55c02b7ccb4486 (diff)
This commit was manufactured by cvs2svn to create tag
'v1_3_1_990209'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_3_1_990209@395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/memcmp.c')
-rw-r--r--missing/memcmp.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/missing/memcmp.c b/missing/memcmp.c
deleted file mode 100644
index 762eaf5260..0000000000
--- a/missing/memcmp.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * memcmp --- compare memories.
- *
- */
-
-int
-memcmp(s1,s2,len)
- char *s1;
- char *s2;
- register int len;
-{
- register unsigned char *a = (unsigned char*)s1;
- register unsigned char *b = (unsigned char*)s2;
- register int tmp;
-
- while (len--) {
- if (tmp = *a++ - *b++)
- return tmp;
- }
- return 0;
-}