chibi-scheme
chibi-scheme copied to clipboard
Embedding image files
Let's say I want to ship a single binary that contains chibi-scheme and a preloaded image, is this possible already? sexp_load_image
seems to require a file, but perhaps a big char[] constant could be used as well?
It would be pretty easy to factor sexp_load_image into 2 routines, one taking a filename and one taking a stream. Then you could use open_memstream to call it on a char[] constant.