Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


strspn()                 String Function                 strspn()




Return length a string includes characters in another

#include <string.h>
unsigned int strspn(string1, string2);
char *string1; char *string2;

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


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026