1 #ifndef UTIL_H 2 #define UTIL_H 3 4 #include <stddef.h> 5 #include <stdio.h> 6 7 #include <1541img/decl.h> 8 9 void *xmalloc(size_t size); 10 void *xrealloc(void *ptr, size_t size); 11 char *copystr(const char *src); 12 char *upperstr(const char *src); 13 14 #ifdef _WIN32 15 FILE *winfopen(const char *path, const char *mode); 16 #define fopen_internal winfopen 17 #else 18 #define fopen_internal fopen 19 #endif 20 21 #endif 22