library to write to files for my games
| 1 | #ifndef WRITE_H |
| 2 | #define WRITE_H |
| 3 | |
| 4 | #include <unistd.h> |
| 5 | |
| 6 | #include <stdbool.h> |
| 7 | #include <stdint.h> |
| 8 | #include <stdio.h> |
| 9 | #include <stdlib.h> |
| 10 | |
| 11 | #include <sys/ioctl.h> |
| 12 | #include <sys/stat.h> |
| 13 | |
| 14 | #include <errno.h> |
| 15 | |
| 16 | #include <ctype.h> |
| 17 | #include <string.h> |
| 18 | |
| 19 | #include <limits.h> |
| 20 | |
| 21 | |
| 22 | #define LOCAL "/.local" |
| 23 | #define SHARE "/share" |
| 24 | |
| 25 | |
| 26 | uint8_t make_folder(char *path); |
| 27 | |
| 28 | uint8_t create_settings_folder(char folder_path[PATH_MAX]); |
| 29 | |
| 30 | #endif |