/*
- * A simple library for MO-Eval judges
+ * A simple library for Moe judges
*
* (c) 2007 Martin Mares <mj@ucw.cz>
*/
/* utils.c: Utility functions */
-void die(char *msg, ...) NONRET;
+void die(char *msg, ...) NONRET; /* Dies with exit code 2 (judge error) */
void *xmalloc(size_t size);
void *xrealloc(void *p, size_t size);
void tok_init(struct tokenizer *t, struct stream *s);
void tok_cleanup(struct tokenizer *t);
-void tok_err(struct tokenizer *t, char *msg) NONRET;
+void tok_err(struct tokenizer *t, char *msg, ...) NONRET;
char *get_token(struct tokenizer *t);
// Parsing functions
unsigned long int get_ulong(struct tokenizer *t);
double get_double(struct tokenizer *t);
long double get_long_double(struct tokenizer *t);
+void get_nl(struct tokenizer *t);