For an assignment at Uni, ive been writing my own version of LS. Its been going quite well, it will work with ls,ls -a, ls -l, ls-al and any of those with a directory. I would like some suggestions on how i could go about putting all the printf's i have into some kind of array so that i can run quick sort on them to order the directory and file names from a to z.
Hope someone out there has an idea, i'm currently trying out snprintf but its very messy!