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 /memelem.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-- | memelem.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -52,7 +52,6 @@ libsimple_memelem(const void *hay_, size_t hayn, const void *sub_, size_t subn) next:; } break; - } } @@ -70,7 +69,7 @@ main(void) assert(!strcmpnul(libsimple_memelem("12345634", 0, "", 0), "12345634")); assert(!strcmpnul(libsimple_memelem("12345634", 8, "3", 1), "345634")); - assert(!libsimple_memelem("12345634", 8, "x", 1));; + assert(!libsimple_memelem("12345634", 8, "x", 1)); assert(!strcmpnul(libsimple_memelem("13456342", 8, "3", 1), "3456342")); assert(!libsimple_memelem("12345634", 0, "3", 1)); |