diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-08 23:53:20 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-08 23:53:20 +0100 |
| commit | 2d1cfb1f1c90fe4cbd2eec4da79484f8727dd670 (patch) | |
| tree | 7ea956b53e632b915388d8ef44fa560326a9c30a /file.h | |
| parent | f71732e188c847cd92d83f94902d57d0ed4d42fb (diff) | |
| download | crep-2d1cfb1f1c90fe4cbd2eec4da79484f8727dd670.tar.gz | |
Basic reading of files
Diffstat (limited to 'file.h')
| -rw-r--r-- | file.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#ifndef FILE_H +#define FILE_H + +#include <stdio.h> + +struct FileContent { + const char *content; + size_t count; +}; + +struct FileContent read_entire_file(const char *file_path); + +#endif |
