Re: Getting current working directory
Re: Getting current working directory
- Subject: Re: Getting current working directory
- From: "subodh singh" <email@hidden>
- Date: Sun, 28 Jan 2007 22:08:22 -0800
Hello,
You can aalso try the same by using getwd() POSIX API.
Thanks
Subodh
On 1/28/07, Nat Lanza <email@hidden> wrote:
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
_______________________________________________
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