News for hackers. Stuff that matters.
Re:Chad Strings – The Chad way to handle strings in C by SAI_Peregrinus on Tuesday May 18, 2021 @11:27PM (#27204196)
Lots of reserved identifiers in that header. In C, identifiers starting with two underscores, or an underscore and a capital letter, are reserved.

So the only safe place to use this is if you're developing a libc and/or a C compiler, or an OS including those.

Re:Chad Strings – The Chad way to handle strings in C by slmjkdbtl on Thursday May 20, 2021 @03:18AM (#27218325)
It's clarified [0] that those are actually reserved specific for CharSTR.

[0] https://github.com/skullchap/chadstr/issues/4

Re:Chad Strings – The Chad way to handle strings in C by SAI_Peregrinus on Friday May 21, 2021 @08:10AM (#27233018)
Yes, as I mentioned it's fine if you're developing the C implementation. You can then choose what to do if any of them get used by a new revision of the C standard, your libc, or your compiler, since you'd be packaging your compiler, libc, and picking what C standard version you support.

It's also trivial to change them, if you get a conflict, since it's a header-only library.

Re:Chad Strings – The Chad way to handle strings in C by cbsmith on Wednesday May 19, 2021 @10:16PM (#27216602)
Pretty easy to fix that...