File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / strspn
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
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



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.