Re: How do I compute the full absolute path of a filename?

>  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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]