Count the lines while you read the file.
Type: Posts; User: whiteflags
Count the lines while you read the file.
Why would you sort on a random constant number like 100 things? For the dynamic array, you have 'rows' amount of char * to sort. In any case, a magic number isn't really going to be the best code, it...