STRCOUNTS(3)

NAME
strcounts - 统计给定字符在字符串中出现的次数

SYNOPSIS

#include <cstring-extension.h>

  Functions

  static size_t strcounts (const char * str, char ch) [inline], [static]

统计给定字符在字符串中出现的次数

Parameters
    str 原字符串
    ch 需要统计的字符

Returns
    size_t 字符出现的次数

Referenced by strsplit().

Detailed Description

接口的主要功能是判断str是否以postfix结尾；注意该函数区分大小写

CONFORMING TO
These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: strstrip(), strstripspace(), strstripblank(), strskipspace(), strskipblank(), str2upper(), str2lower(), strfirstof(), strlastof(), strstartswith(), strstartswith_nocase(), strendwith() and strsplit().

SEE ALSO
strstrip(3), strstripspace(3), strstripblank(3), strskipspace(3), strskipblank(3), str2upper(3), str2lower(3), strfirstof(3), strlastof(3), strstartswith(3), strstartswith_nocase(3), strendwith(3) and strsplit(3).

Author

Generated automatically by Doxygen for cstring-extension.h from the source code.