aboutsummaryrefslogtreecommitdiffstats
path: root/strchrnul.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-10-21 10:32:44 +0200
committerMattias Andrée <maandree@kth.se>2018-10-21 10:32:44 +0200
commit6c87311532b878a27f368a17051dc3945cd01721 (patch)
treefd50d099c13a1401ec0a5610b750277e9f6065c4 /strchrnul.c
parentAdd mempsetelem and memsetelem and add fix and tests for memelem and memrelem (diff)
downloadlibsimple-6c87311532b878a27f368a17051dc3945cd01721.tar.gz
libsimple-6c87311532b878a27f368a17051dc3945cd01721.tar.bz2
libsimple-6c87311532b878a27f368a17051dc3945cd01721.tar.xz
Add man pages some str-functions
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'strchrnul.c')
-rw-r--r--strchrnul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strchrnul.c b/strchrnul.c
index 77634c0..3ec6a0f 100644
--- a/strchrnul.c
+++ b/strchrnul.c
@@ -4,10 +4,10 @@
char *
-libsimple_strchrnul(const char *s_, int c)
+libsimple_strchrnul(const char *s_, char c_)
{
- char *s = *(char **)(void *)&s_;
- for (; *s && (int)*s != c; s++);
+ char *s = *(char **)(void *)&s_, c = (char)c_;
+ for (; *s && *s != c; s++);
return s;
}