30 #include "libfossrepo.h" 36 int main(
int argc,
char* argv[])
45 fprintf(stderr,
"Usage: %s type filename < input\n", argv[0]);
52 fprintf(stderr,
"ERROR: Invalid -- type='%s' filename='%s'\n",
60 LenIn = fread(Buf, 1,
sizeof(Buf), stdin);
64 while (LenOut < LenIn)
66 i = fwrite(Buf + LenOut, 1, LenIn - LenOut, F);
FILE * fo_RepFwrite(char *Type, char *Filename)
Perform an fwrite. Also creates directories.
int fo_RepFclose(FILE *F)
Perform an fclose.