aboutsummaryrefslogtreecommitdiffstats
path: root/man3/strerror.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-04-23 09:24:28 +1200
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-04-23 09:24:28 +1200
commit6fb29ca02e4bce9b7e44ff7f3f7035217dc8851d (patch)
treefe4837838d9ab65dd87919d4ad00716069fe201d /man3/strerror.3
parentc643e947f7edcd293f93998145a52f88699457ff (diff)
downloadman-pages-6fb29ca02e4bce9b7e44ff7f3f7035217dc8851d.tar.gz
strerror.3: Add an example of the kind of string returned by setrerror()
Reported-by: Jon Grant <jg@jguk.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/strerror.3')
-rw-r--r--man3/strerror.35
1 files changed, 5 insertions, 0 deletions
diff --git a/man3/strerror.3 b/man3/strerror.3
index bafa64091e..d6d52df4ff 100644
--- a/man3/strerror.3
+++ b/man3/strerror.3
@@ -69,6 +69,11 @@ function returns a pointer to a string that describes the error
code passed in the argument \fIerrnum\fP, possibly using the
.B LC_MESSAGES
part of the current locale to select the appropriate language.
+(For example, if
+.I errnum
+is
+.BR EINVAL ,
+the returned description will "Invalid argument".)
This string must not be modified by the application, but may be
modified by a subsequent call to
.BR strerror ().