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:
parent
3bc7d9e50e
commit
26b438042c
1 changed files with 0 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue