3 ms·
It works as long as the return value can be used to distinguish failure from success: (f = fopen(filename, "rb")) && ... (ptr = malloc(size)) &&
by userbinator 8y ago
It works as long as the return value can be used to distinguish failure from success:
(f = fopen(filename, "rb")) &&
...
(ptr = malloc(size)) &&
fread(ptr, 1, size, f) == size &&
...