Re: scripts/basic/bin2c: Complete error handling in main()

From: SF Markus Elfring
Date: Fri Nov 04 2016 - 09:49:49 EST


>>> You could define an xprintf() macro that checks if the return value
>>> is < 0 and simply calls perror() and exit(1) in such case.
>> Does such a macro belong to any general header file from the Linux
>> software library?
> No.

Would you like to add it?

How do you think about to reuse it in more source files?

Regards,
Markus