Is there some guides for designing error code in C
It has confused me for a long time that is there a good way to design
error code in C as the return code. I used to use magic number or global
macro to define a specific error like using -1 as general failure. But
when the project becomes large, I find it not easy to manage these error
code. Can someone give me an example or a guide for how to design good
error codes? I'll appreciate a lot.
No comments:
Post a Comment