J
Jeff
I'm not sure if this is off-topic, it's not so much an ANSI-C question
as it is a group etiquette question. Like many people I wrap my *allocs
with error handling. I use the GNU x*alloc convention. But when I post
snippets I lop off the x which leaves me with an ANSI-C function but no
error handling. As a result, I receive responses which admonish me to
handle *alloc-ing errors.
My question: Should I?
a. leave the x*alloc function and state that it handles errors
b. lop off the x and listen to people tell me I'm a fool
c. lop off the x and add error handling to the snippet
d. never allocate memory again
as it is a group etiquette question. Like many people I wrap my *allocs
with error handling. I use the GNU x*alloc convention. But when I post
snippets I lop off the x which leaves me with an ANSI-C function but no
error handling. As a result, I receive responses which admonish me to
handle *alloc-ing errors.
My question: Should I?
a. leave the x*alloc function and state that it handles errors
b. lop off the x and listen to people tell me I'm a fool
c. lop off the x and add error handling to the snippet
d. never allocate memory again