News for hackers. Stuff that matters.
Re:C Strings and my slow descent to madness by giantrobot on Thursday April 06, 2023 @05:36PM (#35474851)
> character count

Byte count.

Re:C Strings and my slow descent to madness by int_19h on Thursday April 06, 2023 @06:26PM (#35475369)
If you want to be pedantic, "an object declared as type char is large enough to store any member of the basic execution character set". It doesn't actually have to be a byte.

In practice, in C context, character == char == byte. Other concepts have to use different names to avoid confusion with the language spec.

Re:C Strings and my slow descent to madness by junon on Saturday April 08, 2023 @07:32AM (#35492325)
In C a 'char' is a 'byte', if we're going to be extra pedantic.