/
githubmirror
/
rdma-core
Обзор
Документация
Войти
/
githubmirror
/
rdma-core
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ccan/str.c
13 строк
283 B
Jason Gunthorpe
ccan: Tidy the LICENSE headers to refer to the exact text
29 сен 2016, 22:53
29 сен 2016, 22:53
cb2bc89
Код
Авторство
О чём код?
/* CC0 (Public domain) - see LICENSE.CC0 file for details */ #include <ccan/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; }