aboutsummaryrefslogtreecommitdiffstats
path: root/strchrnul.c
diff options
context:
space:
mode:
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 2dccb7a..77634c0 100644
--- a/strchrnul.c
+++ b/strchrnul.c
@@ -18,9 +18,9 @@ libsimple_strchrnul(const char *s_, int c)
int
main(void)
{
- assert(!strcmp(libsimple_strchrnul("1234512345", '3'), "34512345"));
- assert(!strcmp(libsimple_strchrnul("1234512345", '1'), "1234512345"));
- assert(!strcmp(libsimple_strchrnul("1234512345", 'x'), ""));
+ assert(!strcmpnul(libsimple_strchrnul("1234512345", '3'), "34512345"));
+ assert(!strcmpnul(libsimple_strchrnul("1234512345", '1'), "1234512345"));
+ assert(!strcmpnul(libsimple_strchrnul("1234512345", 'x'), ""));
return 0;
}