i am building a program that copies directories to each other, but i can only get it to work hard coded.
i want the directory to be input by the user via a command line argument.
i have used
char SrcPath[] = argv[1];
however when i hard code it like
char SrcPath[] = "home/user/Desktop/cat"; it works fine.
but this doesn't work, can anybody explain why / suggest a way to do this? and is there a special way that directories have to be input when used in a CLI?