|
|
1.1 ! root 1: ! 2: ! 3: strspn() String Function strspn() ! 4: ! 5: ! 6: ! 7: ! 8: Return length a string includes characters in another ! 9: ! 10: #include <string.h> ! 11: uunnssiiggnneedd iinntt ssttrrssppnn(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2); ! 12: cchhaarr *_s_t_r_i_n_g_1; cchhaarr *_s_t_r_i_n_g_2; ! 13: ! 14: strspn returns the length for which string1 initially consists ! 15: only of characters that are found in string2. For example, ! 16: ! 17: ! 18: char *s1 = "hello, world"; ! 19: char *s2 = "kernighan & ritchie"; ! 20: strcspn(s1, s2); ! 21: ! 22: ! 23: returns two, which is the length for which the first string in- ! 24: itially consists of characters found in the second. ! 25: ! 26: ***** See Also ***** ! 27: ! 28: string functions, string.h ! 29: ! 30: ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.