samples: net: civetweb: Remove strcspn() implementation

Now that strcspn() is implemented in our minimal libc, remove it from
the civetweb sample to avoid the linker complaining about multiple
definitions.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2019-07-31 21:52:30 +02:00 committed by Maureen Helm
commit 26b438042c

View file

@ -13,21 +13,6 @@
#define FN_MISSING() printf("[IMPLEMENTATION MISSING : %s]\n", __func__)
size_t strcspn(const char *s1, const char *s2)
{
int i, j;
for (i = 0; i < strlen(s2); ++i) {
for (j = 0; j < strlen(s1); ++j) {
if (s1[j] == s2[i]) {
return j;
}
}
}
return strlen(s1);
}
int iscntrl(int c)
{
/* All the characters placed before the space on the ASCII table