diff options
Diffstat (limited to 'apps/plugins/lua/strspn.c')
-rw-r--r-- | apps/plugins/lua/strspn.c | 19 |
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 e95500a1dc..0000000000 --- a/apps/plugins/lua/strspn.c +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | #include "rocklibc.h" | ||
2 | |||
3 | #undef strspn | ||
4 | |||
5 | size_t strspn(const char *s, const char *accept) | ||
6 | { | ||
7 | size_t count; | ||
8 | for (count = 0; *s != 0; s++, count++) { | ||
9 | const char *ac; | ||
10 | for (ac = accept; *ac != 0; ac++) { | ||
11 | if (*ac == *s) | ||
12 | break; | ||
13 | } | ||
14 | if (*ac == 0) /* no acceptable char found */ | ||
15 | break; | ||
16 | } | ||
17 | return count; | ||
18 | } | ||
19 | |||