---
name: "strcspn"
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/strcspn/9"
---

# strcspn(9)

Calculate the length of the initial substring of s which does not contain letters in reject

## NAME

strcspn - Calculate the length of the initial substring of *s* which does not contain letters in *reject*

## SYNOPSIS

**size\_t strcspn(const char \*** *s***, const char \*** *reject***);**

## ARGUMENTS

*s*

The string to be searched

*reject*

The string to avoid

## COPYRIGHT
