From 5e4f0ad6e8781bbf0762874267f44b0ebeb78e89 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 11 Jul 2024 13:02:39 +0100 Subject: [PATCH] string.h: add bcmp header The obsolete bcmp function is in the C library but the prototype was missing --- Library/include/string.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/include/string.h b/Library/include/string.h index 676d4eacc..fb2b334a8 100644 --- a/Library/include/string.h +++ b/Library/include/string.h @@ -42,6 +42,7 @@ extern char *index(const char *__s, int __c); extern char *rindex(const char *__s, int __c); extern void bcopy(const void *__src, void *__dst, size_t __n); extern void bzero(void *__dst, size_t __n); +extern int bcmp(const void *__s1, const void *__s2, size_t __n); /* Other common string functions */ extern char *strpbrk(const char *__s, const char *__accept);