| 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( |