src/frontend.c

changeset 101
265545607063
parent 96
307ac3f79487
equal deleted inserted replaced
100:714fbd1391a2 101:265545607063
146 146
147 /* Process input file */ 147 /* Process input file */
148 FILE *inputfile = fopen(settings.infilename, "r"); 148 FILE *inputfile = fopen(settings.infilename, "r");
149 if (inputfile) { 149 if (inputfile) {
150 CxBuffer fbuf; 150 CxBuffer fbuf;
151 cxBufferInit(&fbuf, NULL, 4096, NULL, CX_BUFFER_AUTO_EXTEND); 151 cxBufferInit(&fbuf, NULL, NULL, 4096, CX_BUFFER_AUTO_EXTEND);
152 cx_stream_copy(inputfile, &fbuf, (cx_read_func) fread, 152 cx_stream_copy(inputfile, &fbuf, (cx_read_func) fread,
153 cxBufferWriteFunc); 153 cxBufferWriteFunc);
154 cxBufferPut(&fbuf, 0); 154 cxBufferPut(&fbuf, 0);
155 fclose(inputfile); 155 fclose(inputfile);
156 c2html_textformat( 156 c2html_textformat(

mercurial