summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/strspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/strspn.c')
-rw-r--r--apps/plugins/lua/strspn.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/plugins/lua/strspn.c b/apps/plugins/lua/strspn.c
deleted file mode 100644
index e95500a..0000000
--- a/apps/plugins/lua/strspn.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "rocklibc.h"
-
-#undef strspn
-
-size_t strspn(const char *s, const char *accept)
-{
- size_t count;
- for (count = 0; *s != 0; s++, count++) {
- const char *ac;
- for (ac = accept; *ac != 0; ac++) {
- if (*ac == *s)
- break;
- }
- if (*ac == 0) /* no acceptable char found */
- break;
- }
- return count;
-}
-