- {
- const char suffix[] = ".dat";
- const char *input_file = argv[first_input_file];
- int n = strlen(input_file) + strlen(suffix);
- char *ofile = malloc(n); /* todo!!! check for NULL. free. */
- new_file_suffix(ofile, n, input_file, suffix);
- output_file = ofile;
- }