aboutsummaryrefslogtreecommitdiffstats
path: root/memrelem.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 /memrelem.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--memrelem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/memrelem.c b/memrelem.c
index b1e69ba..8317e8e 100644
--- a/memrelem.c
+++ b/memrelem.c
@@ -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));