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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user