/* Just a varargs wrapper over prompt_error_msg_internal. */ static int prompt_error_msg_internalv(const char title[], const char format[], int prompt_skip, va_list pa) { char buf[2048]; vsnprintf(buf, sizeof(buf), format, pa); return prompt_error_msg_internal(title, buf, prompt_skip); }
int prompt_error_msg(const char title[], const char message[]) { char portion[1024]; do { copy_str(portion, sizeof(portion), message); message += strlen(portion); if(prompt_error_msg_internal(title, portion, 1)) { return 1; } } while(*message != '\0'); return 0; }
int prompt_error_msg(const char title[], const char message[]) { return prompt_error_msg_internal(title, message, 1); }
void show_error_msg(const char title[], const char message[]) { (void)prompt_error_msg_internal(title, message, 0); }