News for hackers. Stuff that matters.
Re:C Strings and my slow descent to madness by flohofwoe on Thursday April 06, 2023 @11:16AM (#35469482)
> C doesn't have strings.

C has string literals though, and those bake a specific string representation into the language (of course libraries can use their own string representation, but those then need at least some conversion function from string literals).

Re:C Strings and my slow descent to madness by b5n on Thursday April 06, 2023 @07:08PM (#35475762)
String literals in C are simply a pointer to an array of bytes (generally speaking), and that's how they should be treated. Considering them as strings in the HLL sense is the entire issue here.