Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 311 Bytes
#include "internal.h"
#include <stdarg.h>
static char _error_message[512];
void origin_set_error(const char *fmt, ...) {
va_list args;
va_start(args, fmt);
vsnprintf(_error_message, sizeof(_error_message), fmt, args);
va_end(args);
}
const char *origin_error() {
return _error_message;
}