The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

strspn - get length of a substring

 SYNOPSIS



#include <string.h>

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

 DESCRIPTION

The strspn() function computes the length of the maximum initial segment of the string pointed to by s1 which consists entirely of bytes from the string pointed to by s2.

 RETURN VALUE

The strspn() function returns the length of s1; no return value is reserved to indicate an error.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

strcspn(), <string.h>.

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]