Small snake game in C
| 1 | #ifndef SETTINGS_FILE_H |
| 2 | #define SETTINGS_FILE_H |
| 3 | |
| 4 | #include <stdio.h> |
| 5 | #include <stdint.h> |
| 6 | #include <stdlib.h> |
| 7 | |
| 8 | #define SET_LEN 10 |
| 9 | |
| 10 | typedef struct { |
| 11 | int64_t *settings; |
| 12 | size_t length; |
| 13 | } setting_arr; |
| 14 | |
| 15 | |
| 16 | uint8_t read_settings(char *settings_file, setting_arr set_arr); |
| 17 | |
| 18 | |
| 19 | uint8_t init_setting_arr(setting_arr *set_arr, size_t length); |
| 20 | |
| 21 | void free_setting_arr(setting_arr set_arr); |
| 22 | |
| 23 | #endif |