HM_strcnt()

Counts the number of occurrences of a character in a string.

Syntax

int HM_strcnt(char * string, char c);

Type

HyperMesh hmlib Function

Description

Counts the number of occurrences of a character in a string.

Inputs

string
A pointer to a string.
c
The character being counted.

Example

The number of occurrences of *c in *string.

Errors

None.