Hi Michael, On Monday 25 July 2005 03:08 pm, Michael Banck wrote:
> The GNU C library manual (as in, libc.info.gz) suggests using > canonicalize_file_name in chapter 14.5, "Symbolic Links": > > Function: char * canonicalize_file_name (const char *NAME) > > The `canonicalize_file_name' function returns the absolute name of > the file named by NAME which contains no `.', `..' components nor > any repeated path separators (`/') or symlinks. The result is > passed back as the return value of the function in a block of > memory allocated with `malloc'. If the result is not used anymore > the memory should be freed with a call to `free'. > I don't much about this though, so maybe this is bad advise. Excellent advice. You just need to know about such functions. The person who went to the trouble to say, "Never use this function." should also go to the trouble to add, "See Also: canonicalize_file_name" Oh, well. Thank you. Since I am still futzing with the 5.7.2 release, this will be very quickly added in. Regards, Bruce -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]