aboutsummaryrefslogtreecommitdiffstats
path: root/memelem.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-17 11:13:47 +0100
committerMattias Andrée <maandree@kth.se>2018-11-17 11:13:47 +0100
commit58818a2b5d3042426d57846627b476b5f74591b8 (patch)
treefb8105e0c9bb9cd34d329835f9097a5cabcea699 /memelem.c
parentAdd memscan and memcasescan (diff)
downloadlibsimple-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/memelem.c b/memelem.c
index 43cb298..3881832 100644
--- a/memelem.c
+++ b/memelem.c
@@ -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));