Home > Electronics Tutorials > C Language Tutorial > string.h - strcspn

C Language Programming Library Reference Guide

string.h - strcspn

Declaration: size_t strcspn(const char *str1, const char *str2); Finds the first sequence of characters in the string str1 that does not contain any character specified in str2.

Returns the length of this first sequence of characters found that do not match with str2.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster