I am currently trying to create a program as part of my Degree programme.
I am required to create a program to mimic the "ls -alR" command.
I can read in the directory and display it correctly, but controlling the directory currently being in is done through a string which is passed as a parameter to a function, ie recurse(char *currpath)
I am then within the code trying to add a "/" to the end using strcat(currpath, "/");
Unfortunately, here is where I am getting a 'Segmentation fault'.
Any help with this owuld be appreciated.