#ifndef _MEMSTREAM_H_7a749986_ #define _MEMSTREAM_H_7a749986_ /* This file is in the public domain. */ #include typedef struct memstream MEMSTREAM; extern MEMSTREAM *memstream_open_w(void); extern void memstream_append(MEMSTREAM *, const void *, int); extern void memstream_map(MEMSTREAM *, void (*)(const void *, int)); extern void memstream_dump_stdio(MEMSTREAM *, FILE *); extern unsigned int memstream_size(MEMSTREAM *); extern void memstream_free(MEMSTREAM *); extern void memstream_rewind_r(MEMSTREAM *); extern int memstream_readc(MEMSTREAM *); extern void memstream_read_lines(MEMSTREAM *, void (*)(const char *, int)); #endif