60:9f25df78925e | 61:47a5fc33590a |
---|---|
31 #include <stdlib.h> | 31 #include <stdlib.h> |
32 #include <unistd.h> | 32 #include <unistd.h> |
33 #include <string.h> | 33 #include <string.h> |
34 | 34 |
35 #include "c2html.h" | 35 #include "c2html.h" |
36 #include "ucx/utils.h" | 36 #include <ucx/utils.h> |
37 | 37 |
38 #define FILEBUF_SIZE 4096 | 38 #define FILEBUF_SIZE 4096 |
39 | 39 |
40 typedef struct { | 40 typedef struct { |
41 char* outfilename; | 41 char* outfilename; |
53 if (fout != stdout) { | 53 if (fout != stdout) { |
54 fclose(fout); | 54 fclose(fout); |
55 } | 55 } |
56 return 1; | 56 return 1; |
57 } | 57 } |
58 ucx_stream_copy(headerfile, fout, | 58 ucx_stream_bncopy(headerfile, fout, |
59 (read_func) fread, (write_func) fwrite, | 59 (read_func) fread, (write_func) fwrite, |
60 copybuf, copybuflen, (size_t)-1); | 60 copybuf, copybuflen, (size_t)-1); |
61 fclose(headerfile); | 61 fclose(headerfile); |
62 return 0; | 62 return 0; |
63 } | 63 } |