#include #include "streamfile.h" char buf[0x1002]; int main(void) { STREAMFILE * infile; FILE * outfile; size_t filesize,i; infile = open_streamfile("bob.bin"); if (!infile) { printf("failed to open\n"); return 1; } outfile = fopen("fred.bin","wb"); filesize = get_streamfile_size(infile); for (i=0;i