summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/strcspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/strcspn.c')
-rw-r--r--apps/plugins/lua/strcspn.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/plugins/lua/strcspn.c b/apps/plugins/lua/strcspn.c
deleted file mode 100644
index 0a19eaebf2..0000000000
--- a/apps/plugins/lua/strcspn.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "rocklibc.h"
-
-#undef strcspn
-size_t strcspn(const char *s, const char *reject)
-{
- size_t l=0;
- int a=1,i,al=strlen(reject);
-
- while((a)&&(*s))
- {
- for(i=0;(a)&&(i<al);i++)
- if (*s==reject[i]) a=0;
- if (a) l++;
- s++;
- }
- return l;
-}