blob: 1a04c51f616ee95be8229dd07b8368b9fb9bf0dc [file] [log] [blame]
#ifndef LIBUTIL_LOADFILE_H
#define LIBUTIL_LOADFILE_H
#include <stddef.h>
#include <stdio.h>
/* loadfile() returns the true size of the file, but will guarantee valid,
zero-padded memory out to this boundary. */
#define LOADFILE_ZERO_PAD 64
int loadfile(const char *, void **, size_t *);
int zloadfile(const char *, void **, size_t *);
int floadfile(FILE *, void **, size_t *, const void *, size_t);
#endif