8a1 strcspn[count chars not in string]

Contents|Index|Previous|Next

strcspn
[count chars not in string]

SYNOPSIS 
#include <string.h>
size_t strcspn(const char *s1, const char *s2); 

DESCRIPTION
The function,
strcspn, computes the length of the initial part of the string pointed to by s1 which consists entirely of characters not from the string pointed to by s2 (excluding the terminating null character).

RETURNS
strcspn returns the length of the substring found.

COMPLIANCE
strcspn is ANSI C.

strcspn requires no supporting OS subroutines.

0