Re: Getting current working directory
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