From f5e75663fef044cad02eef3eb7aef295312c1158 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 9 Oct 2019 15:07:23 +0000 Subject: Add path_canonicalize, prepare for 2.9.1.0 --- doc/libstddjb/djbunix.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc/libstddjb') diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index dca3a2c..6223bf4 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -808,5 +808,18 @@ Sleeps n milliseconds. Signals received during that time are handled, but do not interrupt the sleep.

+

Miscellaneous functions

+ +

+ size_t path_canonicalize (char *out, char const *in, int check)
+Writes into out the canonical form of the Unix path given in +in. The out array must be preallocated with at least +strlen(in)+2 bytes. Returns the length of the out path, without +counting the terminating null byte. If check is nonzero, in is tested +for every foobar/.. element, and the function returns 0, and sets errno +appropriately, if foobar is not a valid directory; in that case, out +contains the problematic path. +

+ -- cgit v1.2.3