From cf87597226f5d6b269f1f2c4d6f402aa1eccb852 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 21 May 2009 19:01:41 +0000 Subject: Commit FS#9174: Lua scripting language by Dan Everton git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21020 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lua/strpbrk.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 apps/plugins/lua/strpbrk.c (limited to 'apps/plugins/lua/strpbrk.c') diff --git a/apps/plugins/lua/strpbrk.c b/apps/plugins/lua/strpbrk.c new file mode 100644 index 0000000..f416f39 --- /dev/null +++ b/apps/plugins/lua/strpbrk.c @@ -0,0 +1,10 @@ +#include "rocklibc.h" + +char *strpbrk(const char *s, const char *accept) { + register int i,l=strlen(accept); + for (; *s; s++) + for (i=0; i