SilverScreen Solid Modeler

strspn

strspn

Previous topic Next topic  

strspn

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

size_t strspn( char *s1, char *s2 )

 

char *s1;         /* a string */

char *s2;         /* character set string */

 

 




Synopsis

#include "string.h"

 

The strspn function determines of the prefix of string s1 that cosists only of characters in string s2 .

 

 

Parameters

s1 and s2 are null-terminated strings.

 

 

Return Value

strspn returns the length of the prefix determined above.

 

 

See Also

strcspn , strpbrk