1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2025-05-21 23:21:15 +02:00

fix!: usage of stdint instead of int types for cross-platform compatibility

BREAKING CHANGE: Functions signatures changed.

Fixes #9
This commit is contained in:
2024-09-25 14:26:15 +02:00
parent 6ac47429e8
commit 51d7123c8d
17 changed files with 365 additions and 93 deletions

View File

@ -32,9 +32,9 @@ bool character_get_is_digit(const char character) {
return character >= '0' && character <= '9';
}
unsigned char character_get_alphabet_position(const char character) {
uint8_t character_get_alphabet_position(const char character) {
const char letter = character_to_lower(character);
unsigned char position = 0;
uint8_t position = 0;
if (letter >= 'a' && letter <= 'z') {
position = (letter - 'a') + 1;
}