Noise-C
|
Functions | |
void | noise_perror (const char *s, int err) |
Prints a descriptive string for an error to stderr. More... | |
int | noise_strerror (int err, char *buf, size_t size) |
Gets the descriptive string for an error code. More... | |
void noise_perror | ( | const char * | s, |
int | err | ||
) |
int noise_strerror | ( | int | err, |
char * | buf, | ||
size_t | size | ||
) |
Gets the descriptive string for an error code.
err | The error code. |
buf | The buffer to write the descriptive string to. |
size | The size of the buffer. |
The string may be truncated if size is not large enough. This function guarantees to NUL-terminate the returned string.