09-20-2007
11,728,
1,345
Join Date: Feb 2004
Last Activity: 8 May 2020, 9:07 AM EDT
Location: NM
Posts: 11,728
Thanks Given: 903
Thanked 1,345 Times in 1,201 Posts
chdir() changes directory
fgets(<string>, <size in bytes>, stdin) reads a line from the terminal - one way of many ways to do this - there is no readline in ANSI C
getcwd() gives you the current directory you are in