Хоть char и относится к integer (и, таким образом, следует всем их правилам), работа с char несколько отличается, чем с обычными целочисленными типами. Переменная этого типа занимает 1 байт.
int count_characters(const char *str, char character) {.
It shows how to manipulate ASCII chars.
On this webpage you will find 8 bits, 256 characters, ASCII table according to Windows-1252 (code page 1252) which is a superset of ISO 8859-1 in terms of printable characters. In the range 128 to 159 (hex 80 to 9F), ISO/IEC 8859-1 has invisible control characters, while Windows-1252 has writable...