No description
Find a file
2025-10-21 18:50:21 +02:00
.clang-format hello world 2025-10-12 21:42:45 +02:00
.gitignore reading tmp dirname 2025-10-16 16:59:29 +02:00
buffer.c refactor 2025-10-21 18:50:21 +02:00
buffer.h refactor 2025-10-21 18:50:21 +02:00
config.c refactor 2025-10-21 18:50:21 +02:00
config.h refactor 2025-10-21 18:50:21 +02:00
main.c refactor 2025-10-21 18:50:21 +02:00
makefile refactor 2025-10-21 18:50:21 +02:00
README.md refactor 2025-10-21 18:50:21 +02:00
record.h refactor 2025-10-21 18:50:21 +02:00
status_codes.h refactor 2025-10-21 18:50:21 +02:00
TODO.md updated todo 2025-10-17 09:59:59 +02:00

// Generates a random.txt file with parameters specified, and exits
// parameters besides N, are only used internally to specify how big are the chunks written
<main> -g -N 100000 -b 10 -n 101 -o <filename>

// Sort the input file, using the temporary dir, and the parameters specified, save to the output file
<main> -i <input-file> -o <output-file> -d <tmp dir> -N 100000 -b 10 -n 101

// If no option is specified, system will prompt for parameters, and use the input data from stdin
<main>
  • option -i implies the program is supposed to sort something, and thus is incompatible with -g
  • when a parameter is not specified the default values are used:
    • i = "1.in"
    • o = "1.out"
    • d = "tmp"
    • g isn't set (false)
    • N = 100000
    • b = 10
    • n = 101