View Full Version : C file acces and directory prob

01-18-2004, 12:11 AM
Im having trouble trying to figure out the source of the problem in a code i have written that emulates the unix ls command(getting a directory and printing all files in it). Im getting errors in regards to a function declaration in one of my header files and its prototype declaration in the respective program as well as pointer incompatibility in my scandir function. If anyone could explain where i went wrong and shed some light on the issue, that would be terrific. I have attached the code below for conveninece

01-18-2004, 12:13 AM
the header file in question is attached below here. the function in question is the alphasort function