How does one pass a const char *path to fts_open? I would like to pass a filePath.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you want to know how to pass this single path to the
argv(typechar const **) parameter offts_open. This parameter is described thus:So you need to create an array of length two whose elements are of type
char*. Put your path in the first element and put NULL in the second element. Like this:You can now pass
argvtofts_open.