24static inline void AT_handle_result(
const AT_Result res,
const char *err_msg, ...)
27 va_start(args, err_msg);
34 vfprintf(stderr, err_msg, args);
35 fprintf(stderr,
"ALLOCATION ERROR\n");
39 vfprintf(stderr, err_msg, args);
40 fprintf(stderr,
"INVALID ARGUMENT\n");
44 vfprintf(stderr, err_msg, args);
45 fprintf(stderr,
"NETWORK_FAILURE\n");
The libraries public types and functions.
@ AT_ERR_NETWORK_FAILURE
Definition at.h:29
@ AT_OK
Definition at.h:25
@ AT_ERR_ALLOC_ERROR
Definition at.h:28
@ AT_ERR_INVALID_ARGUMENT
Definition at.h:26
AT_Result
Defines possible result types.
Definition at.h:24