Hacker News new | ask | show | jobs
by userbinator 4040 days ago
That just makes it more verbose.

This, on the other hand, always allocates one object of foo's pointed-to-size, whatever its type:

    foo = malloc(sizeof(*foo));