News for hackers. Stuff that matters.
Re:How to C in 2016 by xcgvgh on Friday January 08, 2016 @08:44AM (#10864728)
In the second to last paragraph; did you hint that wrapping a char*, used as a string, into a struct, to get type safety?
Re:How to C in 2016 by _wmd on Friday January 08, 2016 @08:52AM (#10864780)
Yep, you don't even need struct literals for it. Quite a few int types are wrapped this way in the Linux kernel