Losing the magic
Losing the magic
Posted Dec 5, 2022 21:42 UTC (Mon) by khim (subscriber, #9252)In reply to: Losing the magic by iabervon
Parent article: Losing the magic
> Or maybe it's still not common knowledge, but the kernel has all the macros needed to do it, and they're commonly used.
It would be interesting to ask about that random C developers. While the answer is kinda “obvious” (every C programmer I ever knew used sizeof at one point or another and it's pretty obvious that if you ask for sizeof of some object there are no need to actually evaluate an expression that produces that object, you only need to know type of that expression), yet I wouldn't be surprised to see lots of developers who just don't realize they have all the tools they need in a basic course of C.
