Both C and POSIX only specifies that int must be at least 16 bits wide (Linux says 32 bits), so charCode in stf_char should either be an uint_least32_t, an unsigned long int, or a long int (uint32_t could also be used if you only care for normal computers).
Both C and POSIX only specifies that
int
must be at least 16 bits wide (Linux says 32 bits), socharCode
instf_char
should either be anuint_least32_t
, anunsigned long int
, or along int
(uint32_t
could also be used if you only care for normal computers).