diff options
author | Mattias Andrée <maandree@kth.se> | 2018-11-17 11:13:47 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-11-17 11:13:47 +0100 |
commit | 58818a2b5d3042426d57846627b476b5f74591b8 (patch) | |
tree | fb8105e0c9bb9cd34d329835f9097a5cabcea699 /memrelem.c | |
parent | Add memscan and memcasescan (diff) | |
download | libsimple-58818a2b5d3042426d57846627b476b5f74591b8.tar.gz libsimple-58818a2b5d3042426d57846627b476b5f74591b8.tar.bz2 libsimple-58818a2b5d3042426d57846627b476b5f74591b8.tar.xz |
Add memelemscan
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | memrelem.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -60,7 +60,6 @@ libsimple_memrelem(const void *hay_, size_t hayn, const void *sub_, size_t subn) next:; } break; - } } @@ -78,7 +77,7 @@ main(void) assert(!strcmpnul(libsimple_memrelem("12345634", 0, "", 0), "12345634")); assert(!strcmpnul(libsimple_memrelem("12345634", 8, "3", 1), "34")); - assert(!libsimple_memrelem("12345634", 8, "x", 1));; + assert(!libsimple_memrelem("12345634", 8, "x", 1)); assert(!strcmpnul(libsimple_memrelem("13456342", 8, "3", 1), "342")); assert(!libsimple_memrelem("12345634", 0, "3", 1)); |