When I write
mkdir("~/folder1" , 0777);
in linux, it failed to create a directory. If I replace the ~ with the expanded home directory, it works fine. What is the problem with using ~ ?
~
Thanks