* canonicalize: improve documentation
@ 2020-06-27 1:09 Bruno Haible
0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2020-06-27 1:09 UTC (permalink / raw)
To: bug-gnulib
Once the failure return convention is known for xgetcwd(), it follows also
for canonicalize_filename_mode().
2020-06-26 Bruno Haible <bruno@clisp.org>
canonicalize: Improve documentation.
* lib/canonicalize.h (canonicalize_filename_mode): Document the failure
return convention.
diff --git a/lib/canonicalize.h b/lib/canonicalize.h
index 950d117..1815297 100644
--- a/lib/canonicalize.h
+++ b/lib/canonicalize.h
@@ -46,7 +46,8 @@ typedef enum canonicalize_mode_t canonicalize_mode_t;
does not contain any `.', `..' components nor any repeated file name
separators ('/') or, depending on other CAN_MODE flags, symlinks.
Whether components must exist or not depends on canonicalize mode.
- The result is malloc'd. */
+ The result is malloc'd.
+ Upon failure, return NULL with errno set. */
char *canonicalize_filename_mode (const char *, canonicalize_mode_t);
#ifdef __cplusplus
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-27 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-27 1:09 canonicalize: improve documentation Bruno Haible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).