...
Code Block | ||
---|---|---|
| ||
enum {max_buffer = 24};
void report_error(const char *msg) {
const char *error_log = msg;
char buffer[max_buffer];
snprintf(buffer, sizeof( buffer), "Error: %s", error_log);
printf("%s\n", buffer);
}
|
...
...
Code Block | ||
---|---|---|
| ||
enum {max_buffer = 24};
void report_error(const char *msg) {
const char *error_log = msg;
char buffer[max_buffer];
snprintf(buffer, sizeof( buffer), "Error: %s", error_log);
printf("%s\n", buffer);
}
|
...