| | |
| | | #include <time.h> |
| | | #include "list.h" |
| | | |
| | | #if defined(_MSC_VER) && _MSC_VER < 1900 |
| | | #define snprintf(buf,len, format,...) _snprintf_s(buf, len,len, format, __VA_ARGS__) |
| | | #endif |
| | | |
| | | #define SECRET_NUM -1234 |
| | | #define TWO_PI 6.2831853071795864769252866 |
| | | |
| | | int *read_map(char *filename); |
| | | void shuffle(void *arr, size_t n, size_t size); |
| | | void sorta_shuffle(void *arr, size_t n, size_t size, size_t sections); |
| | | void free_ptrs(void **ptrs, int n); |
| | |
| | | void write_all(int fd, char *buffer, size_t bytes); |
| | | int read_all_fail(int fd, char *buffer, size_t bytes); |
| | | int write_all_fail(int fd, char *buffer, size_t bytes); |
| | | char *find_replace(char *str, char *orig, char *rep); |
| | | void find_replace(char *str, char *orig, char *rep, char *output); |
| | | void error(const char *s); |
| | | void malloc_error(); |
| | | void file_error(char *s); |