What are the default argv data types?
I want to grab 2 arguments from the cmd line and pass these arguments to fts_open with the return being set to fts_read. first being source folder path and second being output file path.
I previously passed argv + 1 and it sent the first argument, as well as the second argument, so the source and the output path was being included in the paths to traverse.
I only want to source path to be used for fts_open.
I know fts_open takes a NULL terminated list, I would like to create this from the first argument, the source. I had a few warnings before regarding different data types.
I just want to grab the first arg and store it in a char * and then create a NULL terminated list from this to pass to fts_open.
You need to copy the argument in question to a new list that only includes that argument and the final NULL pointer