Next Previous Contents

## 3.147 strcspn

> Function

>   Compute the length of a substring.

> Header

>   `string.h`

> Declaration

>   `size_t __fastcall__ strcspn (const char* s, const char* set);`

> Description

>   The `strcspn` function computes and returns the length of the substring pointed to by `s` which does not consist of characters contained in the string `set`.

> Limits

>   - The function is only available as fastcall function, so it may only be used in presence of a prototype.
> Availability

>   ISO 9899

> See also

>   strspn, strstr, strtok

> Example

>   None.

Next Previous Contents