From 9593fc545950782ed75f12f53238b07885559b2b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 22:28:25 -0700 Subject: remove ccan for now --- ccan/str/str.c | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 ccan/str/str.c (limited to 'ccan/str/str.c') diff --git a/ccan/str/str.c b/ccan/str/str.c deleted file mode 100644 index a9245c1..0000000 --- a/ccan/str/str.c +++ /dev/null @@ -1,13 +0,0 @@ -/* CC0 (Public domain) - see LICENSE file for details */ -#include - -size_t strcount(const char *haystack, const char *needle) -{ - size_t i = 0, nlen = strlen(needle); - - while ((haystack = strstr(haystack, needle)) != NULL) { - i++; - haystack += nlen; - } - return i; -} -- cgit v1.2.3