3 ms·
struct { // ... } typedef piccolo_os_internals_t; int typedef Int; // also works. You always learn some new quirk of C. I guess typedef works like con
by jollerina 2y ago
struct {
// ...
} typedef piccolo_os_internals_t;
int typedef Int; // also works.
You always learn some new quirk of C. I guess typedef works like const, can put it on the left or the right.
- formerly_proven 2y agoTIL and looked it up, typedef is indeed just a specifier like any other in a declaration.
- extraduder_ire 2y agoAren't those the same thing? <type> typedef <name> My c is pretty rusty, admittedly.
- akovaski 2y agoThe interesting thing being pointed out is that you can do both `typedef <type> <name>;` (the common way, I think) and `<type> typedef <name>;`.