News for hackers. Stuff that matters.
Re:How Structs Really Work in C by notaddicted on Sunday October 16, 2011 @01:56AM (#3116664)
It is only fit to be used for heap allocation, you allocate the size that you need (i.e. malloc( sizeof(struct video_file2) + ARRAY_SIZE) ). It wouldn't work as a local variable.

edit: I suppose one could use for globals or on the stack by casting a byte array ... I would find that to be unspeakably ugly but I don't write much C.

Re:How Structs Really Work in C by rhdoenges on Sunday October 16, 2011 @11:29PM (#3119059)
ah, that's clever.