(C) 1998 AROS - The Amiga Research OS


NAME
#include <string.h>

size_t strcspn ()

SYNOPSIS
const char * str
const char * reject

FUNCTION
Calculates the length of the initial segment of str which consists entirely of characters not in reject.

INPUTS
str
The string to check.
reject
Characters which must not be in str.

RESULT
Length of the initial segment of str which doesn't contain any characters from reject.

EXAMPLE
char buffer[64];

strcpy (buffer, "Hello ");

// Returns 5
strcspn (buffer, " ");

// Returns 0
strcspn (buffer, "H");
SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
23.04.1997 aros
Initialized some variables that could have caused problems otherwise
11.12.1996 aros
New functions