15 #include "libfossrepo.h"
25 int main(
int argc,
char* argv[])
34 fprintf(stderr,
"Usage: %s type filename > output\n", argv[0]);
41 fprintf(stderr,
"ERROR: Invalid -- type='%s' filename='%s'\n",
49 LenIn = fread(Buf, 1,
sizeof(Buf), F);
53 while (LenOut < LenIn)
55 i = fwrite(Buf + LenOut, 1, LenIn - LenOut, stdout);
int fo_RepFclose(FILE *F)
Perform an fclose.
FILE * fo_RepFread(char *Type, char *Filename)
Perform an fopen for reading only.
int main(int argc, char *argv[])
Read a file and print to stdout.