Add documentation for report_error
This commit is contained in:
parent
9a59cee745
commit
bb66ef1a03
1 changed files with 4 additions and 0 deletions
|
@ -149,6 +149,10 @@ int parse(char *buf, size_t buflen, unsigned int *first, unsigned int *second, c
|
|||
return status;
|
||||
}
|
||||
|
||||
/// Prints a formatted error to stderr and a buffer
|
||||
/// @param buf destination buffer
|
||||
/// @param buflen length of buf
|
||||
/// @param msg error message
|
||||
void report_error(char *buf, unsigned long buflen, char *msg) {
|
||||
fprintf(stderr, "%s\n", msg);
|
||||
memset(buf, 0, buflen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue