(C) 1998 AROS - The Amiga Research OS


NAME
#include <string.h>

size_t strspn ()

SYNOPSIS
const char * str
const char * accept

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

INPUTS
str
The string to check.
accept
Characters which have to be in str.

RESULT
Length of the initial segment of str which contains only characters from accept.

EXAMPLE
char buffer[64];

strcpy (buffer, "Hello ");

// Returns 5
strspn (buffer, "Helo");

// Returns 0
strspn (buffer, "xyz");
SEE ALSO

NOTES

BUGS

INTERNALS

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