News for hackers. Stuff that matters.
Re:Humans should think of sizeof() as a function, says Linus... by crazy2be on Saturday May 30, 2015 @09:07AM (#9630050)
Well, in this (simple) case you can just do

    int *foo;
    foo = malloc(sizeof(*foo));
And avoid the brittleness mentioned.

There are no comments on this comment yet.