fmmap
is a simple header-only and cross-platform library to map file into memory.
Just copy fmmap.h into your project and include it like this:
#define FMMAP_IMPLEMENTATION
#include "fmmap.h"
fmmap
is an stb-style header-only library, so
if you want more information about FMMAP_IMPLEMENTATION
, please see
stb_howto.txt.
For an example on how to use this library, check test.c.