get current working directory under program c
http://www.codebind.com/cprogramming/get-current-directory-using-c-program/