Lines Matching refs:output
107 static int process_block (iconv_t cd, char *addr, size_t len, FILE **output,
109 static int process_fd (iconv_t cd, int fd, FILE **output,
111 static int process_file (iconv_t cd, FILE *input, FILE **output,
243 FILE *output = NULL; in main() local
250 if (process_file (cd, stdin, &output, output_file) != 0) in main()
293 ret = process_block (cd, addr, st.st_size, &output, in main()
314 ret = process_fd (cd, fd, &output, output_file); in main()
335 if (output != NULL && fclose (output)) in main()
414 write_output (const char *outbuf, const char *outptr, FILE **output, in write_output() argument
420 if (*output == NULL) in write_output()
425 *output = fopen (output_file, "w"); in write_output()
426 if (*output == NULL) in write_output()
430 *output = stdout; in write_output()
433 if (fwrite (outbuf, 1, outptr - outbuf, *output) < (size_t) (outptr - outbuf) in write_output()
434 || ferror (*output)) in write_output()
449 process_block (iconv_t cd, char *addr, size_t len, FILE **output, in process_block() argument
477 ret = write_output (outbuf, outptr, output, output_file); in process_block()
492 ret = write_output (outbuf, outptr, output, output_file); in process_block()
538 process_fd (iconv_t cd, int fd, FILE **output, const char *output_file) in process_fd() argument
612 return process_block (cd, inbuf, actlen, output, output_file); in process_fd()
617 process_file (iconv_t cd, FILE *input, FILE **output, const char *output_file) in process_file() argument
621 return process_fd (cd, fileno (input), output, output_file); in process_file()