[][src]Function avr_libc::strspn

pub unsafe extern "C" fn strspn(__s: *const i8, __accept: *const i8) -> size_t

\ingroup avr_string \fn size_t strspn(const char *s, const char *accept)

The strspn() function calculates the length of the initial segment of \p s which consists entirely of characters in \p accept.

\return The strspn() function returns the number of characters in the initial segment of \p s which consist only of characters from \p accept. The terminating zero is not considered as a part of string.