|
|
Subscribe / Log in / New account

Would you like signs with those chars?

Would you like signs with those chars?

Posted Oct 25, 2022 19:27 UTC (Tue) by mm7323 (subscriber, #87386)
Parent article: Would you like signs with those chars?

Why not use uint8_t and int8_t when dealing with numeric values or octets, and keep char just for characters and strings?


to post comments

Would you like signs with those chars?

Posted Oct 25, 2022 20:03 UTC (Tue) by khim (subscriber, #9252) [Link]

Because C it not made that way. uint8_t and int8_t are not types, they are type aliases.

You still end up dealing with that char/signed char/unsigned char whether you like it or not.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds