summaryrefslogtreecommitdiffstats
path: root/usr/klibc/strspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/strspn.c')
-rw-r--r--usr/klibc/strspn.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/klibc/strspn.c b/usr/klibc/strspn.c
new file mode 100644
index 0000000..828fa2b
--- /dev/null
+++ b/usr/klibc/strspn.c
@@ -0,0 +1,12 @@
+/*
+ * strspn
+ */
+
+#include <string.h>
+
+#include "strxspn.h"
+
+size_t strspn(const char *s, const char *accept)
+{
+ return __strxspn(s, accept, 0);
+}