Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef enum {
- OK,
- ERR_CONNECTION,
- NERR,
- } err_e;
- static const char *err_msg(err_e err)
- {
- const char *msgs[NERR];
- msgs[OK] = "OK";
- msg[ERR_CONNECTION] = "Connection error;
- return msg[err];
- }
Add Comment
Please, Sign In to add comment