I was writing a C program that receives a file (logfile) and some other parameters by shell. The objective of the program is to take that file, divide it in multiple files (as m