diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-10-28 13:21:42 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-10-30 04:17:06 +0100 |
commit | cc0a4c632aeda82ab4517355b4b4489190da013e (patch) | |
tree | 49d40380d8a48c5b374a2bd63b53a73c443bf2e3 /apps/plugins/lua/strcspn.c | |
parent | df8233e4abbd0d626158abc5388957cc28b06c50 (diff) | |
download | rockbox-cc0a4c632aeda82ab4517355b4b4489190da013e.tar.gz rockbox-cc0a4c632aeda82ab4517355b4b4489190da013e.zip |
Lua remove strncat.c & strcspn.c
Change-Id: I08256f31e733d2674054e8e589d539d1396a0ee6
Diffstat (limited to 'apps/plugins/lua/strcspn.c')
-rw-r--r-- | apps/plugins/lua/strcspn.c | 17 |
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 @@ | |||
1 | #include "rocklibc.h" | ||
2 | |||
3 | #undef strcspn | ||
4 | size_t strcspn(const char *s, const char *reject) | ||
5 | { | ||
6 | size_t l=0; | ||
7 | int a=1,i,al=strlen(reject); | ||
8 | |||
9 | while((a)&&(*s)) | ||
10 | { | ||
11 | for(i=0;(a)&&(i<al);i++) | ||
12 | if (*s==reject[i]) a=0; | ||
13 | if (a) l++; | ||
14 | s++; | ||
15 | } | ||
16 | return l; | ||
17 | } | ||