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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user