Re: Getting current working directory
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Jan 28, 2007, at 10:08 PM, subodh singh wrote: In other words, do not use getwd. -- Steve Checkoway _______________________________________________ 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... This email sent to site_archiver@lists.apple.com You can aalso try the same by using getwd() POSIX API. According to the man page, getcwd conforms to POSIX.1 while getwd was in 4.0BSD. In addition, The getwd() function does not do sufficient error checking and is not able to return very long, but valid, paths. It is provided for compati- bility. smime.p7s
participants (1)
-
Steve Checkoway