Re: How do I compute the full absolute path of a filename?
- From: Federico Mena Quintero <federico helixcode com>
- To: dmgerman acm org
- Cc: gnome-devel-list gnome org
- Subject: Re: How do I compute the full absolute path of a filename?
- Date: Mon, 15 May 2000 17:54:51 -0500
> I need to compute the absolute path name of a filename with respect to
> the application's current working directory. I have been looking
> around I cannot find it. I am sure it must exist somewhere. Do anybody
> know the name of the C function and its location?
Look at the vfs_canon() function in the MC sources. If your pathname
is not absolute, what it does is just prepend the cwd to it and then
call the canonicalize_pathname() function.
Good luck,
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]