17 #include "libfossrepo.h"
23 int main(
int argc,
char* argv[])
32 fprintf(stderr,
"Usage: %s type filename < input\n", argv[0]);
39 fprintf(stderr,
"ERROR: Invalid -- type='%s' filename='%s'\n",
47 LenIn = fread(Buf, 1,
sizeof(Buf), stdin);
51 while (LenOut < LenIn)
53 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.