3 ms·
FWIW, instead of `*buffer = malloc(n * sizeof(*buffer))` you can omit the extra parens and write `*buffer = malloc(n * sizeof *buffer)` also, calloc is a nice
by anaphor 6y ago
FWIW, instead of `*buffer = malloc(n * sizeof(*buffer))` you can omit the extra parens and write `*buffer = malloc(n * sizeof *buffer)`
also, calloc is a nice idea too
- nanis 6y ago> can ... write *buffer = malloc(n * sizeof *buffer) The extra parentheses are there for the us humans who might need help distinguishing between * as dereferencing operator versus * as multiplication all happening within the space of eight or so characters.