4 ms·
You can also use __attribute__((format(printf, ...))) for functions of yours that ultimately pass their varargs to a member of the printf family. It is exceedi
by brandmeyer 7y ago
You can also use __attribute__((format(printf, ...))) for functions of yours that ultimately pass their varargs to a member of the printf family.
It is exceedingly rare for malloc() to give you a recovery chance on failure. Folks are so used to the Linux model of overcommit+OOM killer that almost nobody's code can gracefully deal with memory exhaustion.