DOKK / manpages / debian 12 / s3d-doc / s3d_open_file.3.en
S3D_OPEN_FILE(3) s3d Manual S3D_OPEN_FILE(3)

s3d_open_file - copy file into memory

#include <s3d.h>

int s3d_open_file(const char *fname, char **pointer);

This opens the file fname, setting *pointer to it's memory position. the function will return the size of buffer. you can free() the pointer when you're finished.

Simon Wunderlich

Author of s3d
s3d