File.h 228 B

1234567891011121314
  1. #ifndef CORE_FILE_H
  2. #define CORE_FILE_H
  3. #include <stddef.h>
  4. typedef struct {
  5. char* data;
  6. size_t length;
  7. } FileContent;
  8. bool readFile(FileContent* f, const char* path);
  9. void destroyFileContent(FileContent* f);
  10. #endif