3 ms·
Well, in this (simple) case you can just do int *foo; foo = malloc(sizeof(*foo)); And avoid the brittleness mentioned.
by crazy2be 11y ago
Well, in this (simple) case you can just do
int *foo;
foo = malloc(sizeof(*foo));
And avoid the brittleness mentioned.