Share this page

# strspn

Example: strspn | String Manipulation Functions

Returns the length of the leading characters in a string that are contained in a specified string.

    size_t *strspn( const char *string, const char *skipset);

string | Null-terminated string to be scanned.
skipset | Null-terminated string containing character set.

strspn returns the length of the substring that starts at the beginning of `string` and contains only characters that are in `skipset`.

## Return Values

Returns the length of the initial substring of argument `string` that is only composed of characters included in `skipset`.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: