summaryrefslogtreecommitdiff
path: root/src/strings/bcmp.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 15:38:07 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 15:38:07 -0400
commit1f4e410fdcff7cc96c5a0c0fb97172871d0ae347 (patch)
treef2522eb7b3fe9868934abc2c3bbb8a1eab132878 /src/strings/bcmp.c
parent81c9e19e3dfb3f99f7c16167734257aeca9ac922 (diff)
implement in terms of <string.h> equivalent
Diffstat (limited to 'src/strings/bcmp.c')
-rw-r--r--src/strings/bcmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strings/bcmp.c b/src/strings/bcmp.c
index 0686ebdf..052beb7c 100644
--- a/src/strings/bcmp.c
+++ b/src/strings/bcmp.c
@@ -1,8 +1,9 @@
+#include <string.h>
#include <strings.h>
int bcmp(const void *s1, const void *s2, size_t n)
{
- return 0;
+ return memcmp(s1, s2, n);
}
/*