diff options
| author | Ada Christine <adachristine18@gmail.com> | 2026-05-24 11:09:31 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2026-05-24 11:09:31 +0000 |
| commit | d07bd08dd0446e8c41eccaccbb07e9112200e8ee (patch) | |
| tree | 742a3f9d9d84c8ee55858b2ebc7e0e0f8c714c7c /lib/memcmp.c | |
| parent | 9aaf21bf10d00ec12b24499817e3e91dca08c461 (diff) | |
rename and move, function renames in stdio
Diffstat (limited to 'lib/memcmp.c')
| -rw-r--r-- | lib/memcmp.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/memcmp.c b/lib/memcmp.c deleted file mode 100644 index 2348afe..0000000 --- a/lib/memcmp.c +++ /dev/null @@ -1,16 +0,0 @@ -/* Public domain. */ -#include <stddef.h> - -int -memcmp (const void *str1, const void *str2, size_t count) -{ - const unsigned char *s1 = str1; - const unsigned char *s2 = str2; - - while (count-- > 0) - { - if (*s1++ != *s2++) - return s1[-1] < s2[-1] ? -1 : 1; - } - return 0; -} |
