About current working directory
If I create a file (whose name is "foo") using constant string "./foo", I am wondering under which directory should file foo be created, i.e. what/where is the current '.' directory? I think it should be current working directory, which could be get and set by Linux API getcwd/chdir?
For example, if I use Linux API chdir to change current working directory to /temp, the file foo will be created under /temp. Is my understanding correct?
thanks in advance,