Lines Matching refs:ofile
97 void formatString(FILE *ofile, const char *s, int len)
99 putc('"', ofile);
104 fputs("&", ofile);
108 fputs("<", ofile);
111 fputs(">", ofile);
115 fputs(""", ofile);
119 fprintf(ofile, "&#%d;", c);
121 putc(*s, ofile);
125 fputs("\"\n", ofile);
196 int formatIPTC(FILE *ifile, FILE *ofile)
303 fprintf(ofile, "%d#%d#%s=",(unsigned int)dataset, (unsigned int) recnum, readable);
305 fprintf(ofile, "%d#%d=",(unsigned int)dataset, (unsigned int) recnum);
306 formatString( ofile, str, taglen );
380 *ofile = stdout;
408 _setmode( _fileno( ofile ), _O_BINARY );
431 ofile = fopen(argv[++i], "wt");
433 ofile = fopen(argv[++i], "wb");
434 if (ofile == (FILE *)NULL)
453 formatIPTC(ifile, ofile);
537 fputc(0x1c, ofile);
538 fputc(dataset, ofile);
539 fputc(recnum, ofile);
542 fputc((len >> 8) & 255, ofile);
543 fputc(len & 255, ofile);
547 fputc(((len >> 24) & 255) | 0x80, ofile);
548 fputc((len >> 16) & 255, ofile);
549 fputc((len >> 8) & 255, ofile);
550 fputc(len & 255, ofile);
554 fputc(token[next++], ofile);
566 fclose( ofile );