aboutsummaryrefslogtreecommitdiffstats
path: root/missing/strncasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/strncasecmp.c')
-rw-r--r--missing/strncasecmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/missing/strncasecmp.c b/missing/strncasecmp.c
index a4cc5828b8..59d4477a40 100644
--- a/missing/strncasecmp.c
+++ b/missing/strncasecmp.c
@@ -1,12 +1,10 @@
/* public domain rewrite of strncasecmp(3) */
#include <ctype.h>
+#include <stddef.h>
int
-strncasecmp(p1, p2, len)
- char *p1;
- char *p2;
- int len;
+strncasecmp(const char *p1, const char *p2, size_t len)
{
while (len != 0) {
if (toupper(*p1) != toupper(*p2)) {