2 ms·
Strange but true you can create functions where you pass a pointer to an error variable. error_t oops; int x = foo(10, &oops); if(oops) goto whoops;
by Gibbon1 4y ago
Strange but true you can create functions where you pass a pointer to an error variable.
error_t oops;
int x = foo(10, &oops);
if(oops)
goto whoops;
int x = foo(10, 0); // yolo!