From bfd0179042b0b02fb88748d54e56e7e208bb117f Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Wed, 2 Apr 2014 20:46:06 +0200 Subject: Revert "Update lua plugin to 5.2.3" FILE typedef to *void needs more work to not break sim and application builds. I checked only a few random native builds unfortunately. Sorry for inconvenience. --- apps/plugins/lua/strcspn.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 apps/plugins/lua/strcspn.c (limited to 'apps/plugins/lua/strcspn.c') diff --git a/apps/plugins/lua/strcspn.c b/apps/plugins/lua/strcspn.c new file mode 100644 index 0000000000..0a19eaebf2 --- /dev/null +++ b/apps/plugins/lua/strcspn.c @@ -0,0 +1,17 @@ +#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