• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting current working directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting current working directory


  • Subject: Re: Getting current working directory
  • From: Nat Lanza <email@hidden>
  • Date: Sun, 28 Jan 2007 15:02:25 -0500

Tony Scaminaci wrote:
I'm trying to programatically get and save the current working directory using a low-level system call.

You want getcwd():

"The getcwd() function copies the absolute pathname of the current working directory into the memory referenced by buf and returns a pointer to buf. The size argument is the size, in bytes, of the array referenced by buf."

More complete documentation available, of course, in the getcwd(3) manpage.


--nat _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Getting current working directory
      • From: "subodh singh" <email@hidden>
References: 
 >Getting current working directory (From: Tony Scaminaci <email@hidden>)

  • Prev by Date: Getting current working directory
  • Next by Date: Re: Getting current working directory
  • Previous by thread: Getting current working directory
  • Next by thread: Re: Getting current working directory
  • Index(es):
    • Date
    • Thread