Hey guys I'm working on a functionwhich is passed two consecutive strings separated by null character, these strings are directory names that I need later in the function to open a directory. I was thinking I could use,Code:void *copydirectory(void *arg)or ratherCode:char *strtok(char *str, const char *delim);since my function needs to be thread safe. Can I use a null character as a delimiter? For example,Code:char *strtok_r(char *str, const char *delim, char **saveptr);Additionally, would the names being pointed to be non null terminated after the calls to strtok_r? Any tips on other strategies would help.Code:char **saveptr; char *dir1, *dir2; char *delim = '\0'; dir1 = strtok_r(arg, delim, &saveptr); dir2 = strtok_r(NULL,delim, &saveptr);