Thread: Really Simple Question!

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    13

    Really Simple Question!

    Hi,

    I am starting to do some C coding after a break for a year or two. I have already forgotten a really simple thing.

    Can anyone remind me how to get the current directory from unix.
    ie. essentially i need to get the value of pwd into a string from my c code.

    I'd appreciate any help!

    Thanks,

    slevytam

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    man getcwd
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    13
    Thanks!

  4. #4
    .
    Join Date
    Nov 2003
    Posts
    307
    getcwd() in unistd.h

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question regarding variables
    By Flakster in forum C++ Programming
    Replies: 10
    Last Post: 05-18-2005, 08:10 PM
  2. Simple class question
    By 99atlantic in forum C++ Programming
    Replies: 6
    Last Post: 04-20-2005, 11:41 PM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 09:46 AM
  4. simple question.
    By InvariantLoop in forum Windows Programming
    Replies: 4
    Last Post: 01-31-2005, 12:15 PM
  5. simple fgets question
    By theweirdo in forum C Programming
    Replies: 7
    Last Post: 01-27-2002, 06:58 PM