6 ms·
Indeed this is good style. The following, however, is not good style for allocating an array: long_struct_name *fooArray = malloc(count * sizeof * fooArray
by kpreid 15y ago
Indeed this is good style. The following, however, is not good style for allocating an array:
long_struct_name *fooArray = malloc(count * sizeof * fooArray);