User loginNavigationWho's onlineThere are currently 0 users and 0 guests online.
Search |
Portability and C issuesMacrosSome macros we already mentioned in the Coding Style section, are declared to solve some little yet important portability and language-related issues. More precisely, we have the couple Data typesBooleansThe current situation for boolean values in C is terrible. The C89 standard does not define booleans, a lot of libraries have their own, often incompatible, definitions, and the C99 standard has the In order to be as compatible and less confusing as possible, a Being 8 bits wide, programmers should be careful when casting to this type, but since that would be a bug even having booleans defined as StringsAll strings handled by the library are supposed to be null-terminated and in UTF-8 encoding, unless otherwise stated. |