---
name: "strspn"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/strspn/9"
---

# strspn(9)

Calculate the length of the initial substring of s which only contain letters in accept

## NAME

strspn - Calculate the length of the initial substring of *s* which only contain letters in *accept*

## SYNOPSIS

**size\_t strspn(const char \*** *s***, const char \*** *accept***);**

## ARGUMENTS

*s*

The string to be searched

*accept*

The string to search for

## COPYRIGHT
