Skip to content
Permalink
Browse files

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>
  • Loading branch information...
carlescufi authored and MaureenHelm committed Jul 31, 2019
1 parent 3bc7d9e commit 26b438042cb6d7ad42f7455a23b3bdf144a1c011
Showing with 0 additions and 15 deletions.
  1. +0 −15 samples/net/sockets/civetweb/src/libc_extensions.c
@@ -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

0 comments on commit 26b4380

Please sign in to comment.
You can’t perform that action at this time.