byte_count(3)
limb manual
byte_count(3)
NAME
byte_count - count occurrences of a byte in a byte array
SYNOPSIS
#include <limb/bytestr.h>
size_t byte_count(const char *haystack, size_t hlen, char c)
DESCRIPTION
The byte_count
() function returns the number of occurrences of byte c
in the
byte array haystack
of length hlen
.
RETURN VALUE
The byte_count
() function returns the number of byte c
in the byte array
haystack
.