diff options
| author | Mosder <xmosder12@gmail.com> | 2026-07-06 14:14:59 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-07-06 14:14:59 +0200 |
| commit | d0d8d158f856ea4a6bfb1da25ec210f9516f67df (patch) | |
| tree | 2cc365e5b360b37606e67d160560a37c33713f64 /analyzer/utils | |
| parent | f57066460f7c914b07a612d037eb5e57f617d5b2 (diff) | |
fix: YAGNI cont.
Diffstat (limited to 'analyzer/utils')
| -rw-r--r-- | analyzer/utils/fs.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/analyzer/utils/fs.h b/analyzer/utils/fs.h index 6335799..8083ddc 100644 --- a/analyzer/utils/fs.h +++ b/analyzer/utils/fs.h @@ -1,8 +1,6 @@ // utils/fs.h // functions for operating on the file system, i.e. creating directories, writing files, etc. -#include <sys/types.h> - // get main directory used by the program // params: // - main_dir - buffer to save the directory to @@ -20,12 +18,3 @@ extern void get_saves_dir(char *saves_dir); // create directories that will be used by the program extern void create_necessary_directories(); - -// writes file to the specified path -// params: -// - path - path to write the file to -// - contents - contents of the file -// - contents_len - amount of bytes of contents to write -// - flags - flags to open the file with -// - permissions - permissions of the written file -extern void write_file(char *path, void *contents, int contents_len, int flags, mode_t permissions); |
