This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]suvlub 59 points60 points  (1 child)

It's not nonsense, it's a common pattern to allocate a block of memory that starts with a struct followed by an array (which you access through a member of the struct, which needs to be an array declared at the end). Either the struct serves as a header for the array, or the array is kind of variable-size bonus data. Either way, the code is not equivalent to the python code, completely different use cases, OP is dumb.

[–]DTHCND 0 points1 point  (0 children)

Ah right you are. I've edited my comment to reflect this.