MCPcopy Create free account
hub / github.com/coreutils/coreutils / make_filename

Function make_filename

src/csplit.c:880–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878 know of any hosts where this implementation isn't safe. */
879
880static char *
881make_filename (int num)
882{
883 strcpy (filename_space, prefix);
884 if (suffix)
885 sprintf (filename_space + strlen (prefix), suffix, num);
886 else
887 sprintf (filename_space + strlen (prefix), "%0*d", digits, num);
888 return filename_space;
889}
890
891/* Create the next output file. */
892

Callers 2

create_output_fileFunction · 0.85
delete_all_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected