On 03/31/2010 06:03 PM, John Dennis wrote:
On 03/31/2010 05:30 PM, Dmitri Pal wrote:
> Is there any constraint on using path_utils from within the INI?
> I need path to be converted to absolute path.
That's what path_utils is there for, you should use it. The function is:
int make_path_absolute(char *absolute_path, size_t absolute_path_size,
const char *path);
There is doxygen documentation for the API (thanks to Jakub).
P.S.: make_path_absolute() utilizes the current working directory (cwd).
If you have a "root" path and a relative path (or filename) you can join
them together with path_concat().
If you don't have control over you path inputs you might want to utilize
normalize_path() before you concatenate them together.
John Dennis <jdennis(a)redhat.com>
Looking to carve out IT costs?