1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2025-05-21 23:21:15 +02:00

refactor: include only in header files

This commit is contained in:
Divlo
2023-01-07 19:38:01 +01:00
parent 886038a0ac
commit bd85171e2d
41 changed files with 101 additions and 131 deletions

View File

@ -1,16 +1,5 @@
#include "filesystem.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "string.h"
int filesystem_read(char *path, char **file_content, off_t *file_size) {
int file_descriptor = open(path, O_RDONLY);
if (file_descriptor == -1) {