getfile - read a file into memory
SYNOPSIS
#include "rdb.h"
char *getfile(file_name, file_size)
char *file_name;
unsigned *file_size;
DESCRIPTION
getfile
reads the file named
file_name
into memory and sets
file_size
to its length.
RETURN VALUE
getfile
returns NULL if
it cannot open the file or if it cannot
malloc
enough room for it.
Otherwise, it returns a pointer to
the location of the file contents in memory.