blob: 1a04c51f616ee95be8229dd07b8368b9fb9bf0dc [file] [log] [blame]
Greg Hartman76d05dc2016-11-23 15:51:27 -08001#ifndef LIBUTIL_LOADFILE_H
2#define LIBUTIL_LOADFILE_H
3
4#include <stddef.h>
5#include <stdio.h>
6
7/* loadfile() returns the true size of the file, but will guarantee valid,
8 zero-padded memory out to this boundary. */
9#define LOADFILE_ZERO_PAD 64
10
11int loadfile(const char *, void **, size_t *);
12int zloadfile(const char *, void **, size_t *);
13int floadfile(FILE *, void **, size_t *, const void *, size_t);
14
15#endif