MonkeeSage,
I thought about trying to use qsort but it's a lot more effort. You have to get the file size, malloc a buffer for it, read the entire file into the buffer, count the number of lines, malloc another buffer for sorting structures (int timeval, char *bufptr), go through the lines and fill the sorting buffer, sort the buffer, go through the sorting buffer and output lines (that
Forum:
General