1STRSPN(3) 386BSD Programmer's Manual STRSPN(3) 2 3NNAAMMEE 4 ssttrrssppnn - span a string 5 6SSYYNNOOPPSSIISS 7 ##iinncclluuddee <<ssttrriinngg..hh>> 8 9 _s_i_z_e__t 10 ssttrrssppnn(_c_o_n_s_t _c_h_a_r *_s, _c_o_n_s_t _c_h_a_r *_c_h_a_r_s_e_t) 11 12DDEESSCCRRIIPPTTIIOONN 13 The strcspn function spans the initial part of the null-terminated string 14 _s as long as the characters from _s occur in string _c_h_a_r_s_e_t. 15 16RREETTUURRNN VVAALLUUEESS 17 The ssttrrssppnn() function returns the number of characters spanned. 18 19SSEEEE AALLSSOO 20 index(3), memchr(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), 21 strrchr(3), strsep(3), strstr(3), strtok(3) 22 23SSTTAANNDDAARRDDSS 24 The ssttrrssppnn() function conforms to ANSI C3.159-1989 (``ANSI C''). 25 26BSD Experimental June 29, 1991 1 27 28 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 65 66 67