3 ms·
Yes, the pattern isn't useful for function calls that return results that are used as parameters in later function calls, which tends to happen all the time.
by johan_larson 8y ago
Yes, the pattern isn't useful for function calls that return results that are used as parameters in later function calls, which tends to happen all the time.
- userbinator 8y agoIt 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 && ...