3 ms·
sizeof(char) is always 1, because the number that it returns is not in bytes but in chars. What you mean is CHAR_BIT in limits.h. This seems to be common state
by dfox 15y ago
sizeof(char) is always 1, because the number that it returns is not in bytes but in chars. What you mean is CHAR_BIT in limits.h.
This seems to be common state of things on almost anything, that is designed to be fast first and "C-compatible" second.
- nitrogen 15y agoD'oh! Yes, I meant CHAR_BIT. Thanks for the correction.