39 unsigned int line,
const char *format, ...)
43 fprintf(stderr,
"%s:%d: ", filename, line);
47 va_start(args, format);
48 vfprintf(stderr, format, args);
52 fprintf(stderr,
": %s", strerror(error));
54 fprintf(stderr,
"\n");
61 void sleep(
unsigned long milliseconds)
68 t.tv_nsec = 1000 * 1000 * milliseconds;
void ALVAR_EXPORT sleep(unsigned long milliseconds)
Sleep for a specified amount of milliseconds.
void ALVAR_EXPORT errorAtLine(int status, int error, const char *filename, unsigned int line, const char *format,...)
Error reporting function inspired by error_at_line() on Linux.