Re: Getting current working directory
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rdhJo7RiqydPNxZRejGi5imO579whZ2RfdEWunrRgMHwvb2DAXmwJtPIV0kjNE9uqBd2x74Oc8Z0dzWqRIw9BHBgPX7WqSFVxEwyesmZEeQMsS+x66k0heQ5k3ICiLJOT1BHEVjh1yRl9fNzVQV3MqJSqcdvyxLwh6nm+wG8oSI= Hello, You can aalso try the same by using getwd() POSIX API. Thanks Subodh 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/subodh79%40gmail.com This email sent to subodh79@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... On 1/28/07, Nat Lanza <nlanza@premodern.org> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
subodh singh