util.c 280 Bytes
Newer Older
Igor Zhirkov's avatar
Igor Zhirkov committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

#include "util.h"

_Noreturn void err( const char* msg, ... ) {
  va_list args;
  va_start (args, msg);
  vfprintf(stderr, msg, args);
  va_end (args);
  abort();
}


extern inline size_t size_max( size_t x, size_t y );