OAR

RTEMS GNU Tools On-Line Library


strcspn

PREV UP NEXT Bookshelf

4.17: strcspn---count chars not in string

Synopsis

size_t strcspn(const char *s1, const char *s2);

Description
This function 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.


Portability
strcspn is ANSI C.

strcspn requires no supporting OS subroutines.



PREV UP NEXT Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.