LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How can I get the "current work dir" using C function? (https://www.linuxquestions.org/questions/programming-9/how-can-i-get-the-current-work-dir-using-c-function-231211/)

wuzhong 09-16-2004 01:40 AM

How can I get the "current work dir" using C function?
 
I mean to get the information as the echo of command "pwd"

thanks!!

sether 09-16-2004 01:53 AM

i don't really understand the question. do you want to know the working directory without having to type "pwd"? i mean do you want it to just be displayed like this:

/home/user>

chort 09-16-2004 02:01 AM

Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.

mirradric 09-16-2004 02:09 AM

Code:

man getcwd
it a obvious place to look

wuzhong 09-16-2004 06:44 AM

yes

wuzhong 09-16-2004 06:47 AM

thanks!!


All times are GMT -5. The time now is 07:23 AM.