Actually implement strnlen(), which was in the header files but not in
the library.
perror.o printf.o puts.o qsort.o realloc.o seed48.o snprintf.o \
sprintf.o srand48.o sscanf.o stack.o strcasecmp.o strcat.o \
strchr.o strcmp.o strcpy.o strdup.o strerror.o strlen.o \
+ strnlen.o \
strncasecmp.o strncat.o strncmp.o strncpy.o stpncpy.o strndup.o \
strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \
strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
--- /dev/null
+/*
+ * strnlen()
+ */
+
+#include <string.h>
+
+size_t strnlen(const char *s, size_t n)
+{
+ const char *ss = s;
+ while ( n-- && *ss )
+ ss++;
+ return ss-s;
+}