diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2012-04-23 09:24:28 +1200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2012-04-23 09:24:28 +1200 |
| commit | 6fb29ca02e4bce9b7e44ff7f3f7035217dc8851d (patch) | |
| tree | fe4837838d9ab65dd87919d4ad00716069fe201d | |
| parent | c643e947f7edcd293f93998145a52f88699457ff (diff) | |
| download | man-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>
| -rw-r--r-- | man3/strerror.3 | 5 |
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 (). |
