Function (Path Standard C Header / string.h)

strspn

size_t strspn(char *s, char *charset);

Retrieves the subscript of the first character in the string s that does not appear in the string charset


Parameters

  char *s
    String

  char *charset
    Char set String

函数 (属于 标准C头文件 / string.h)

strspn

size_t strspn(char *s, char *charset);

检索字符串 s 中第一个不在字符串 charset 中出现的字符下标


参数

  char *s
    字符串

  char *charset
    字符集合串