cstring · Section 3
cstr_find
NAME
cstr_find - find the first occurrence of a substring
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> cstr_find(s, needle);
DESCRIPTION
This macro just forwards its arguments to cstring_find().
PARAMETERS
s cstr to search needle Substring to find
RETURN VALUE
The zero-based index of the first occurrence, or ccol_invalid_size when the needle is not found