I am very new to C programming. I have a program that is suppose to take 3 command line arguments and read from a file a list of words. Then it is suppose to print them in an output file with the word and the number of times it occurs.
The problem I am currently having is the program does nothing and just crashes and not sure what to do.
Have you any idea how far the program runs before crashing? Do you get a plain simple segfault error message, or something more informative? Have you tried any debugging?
Where does the qsort function come from? Is it in one of the .h files you are including? What do the two text files look like?
Have you any idea how far the program runs before crashing? Do you get a plain simple segfault error message, or something more informative? Have you tried any debugging?
Where does the qsort function come from? Is it in one of the .h files you are including? What do the two text files look like?
the proj2.out file is just the output of the program sorted with the word and the number of times it occurs.