|
|
coherent
strspn() String Function strspn()
Return length a string includes characters in another
#include <string.h>
uunnssiiggnneedd iinntt ssttrrssppnn(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2);
cchhaarr *_s_t_r_i_n_g_1; cchhaarr *_s_t_r_i_n_g_2;
strspn returns the length for which string1 initially consists
only of characters that are found in string2. For example,
char *s1 = "hello, world";
char *s2 = "kernighan & ritchie";
strcspn(s1, s2);
returns two, which is the length for which the first string in-
itially consists of characters found in the second.
***** See Also *****
string functions, string.h
COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.