Author Topic: IS_UCHAR ?  (Read 187 times)


  • Hero Member
  • *****
  • Posts: 601
    • View Profile
« on: January 01, 2021, 03:52:45 PM »
Here is a BCX embedded C one liner to check the compiler's default signedness for the char data type.

Code: [Select]

! printf("%d\n",'\x80');

-128 means default is signed char

128 means default is unsigned char

Default for Nuwen, MSVC, CLang and Pelles C is signed.

To change MSVC and Pelles C to unsigned char default add

Code: [Select]
flag to command line.

To change Nuwen and CLang to unsigned char default add

Code: [Select]
 flag to command line.