summaryrefslogtreecommitdiff
path: root/ccan/str/str.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 22:28:25 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 22:31:48 -0700
commit9593fc545950782ed75f12f53238b07885559b2b (patch)
tree9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/str/str.c
parentbd8c223756d2f912526ecef53bae0cc8e0c63442 (diff)
remove ccan for now
Diffstat (limited to 'ccan/str/str.c')
-rw-r--r--ccan/str/str.c13
1 files changed, 0 insertions, 13 deletions
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 <ccan/str/str.h>
-
-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;
-}