Browse Source

Document that the string returned by strerror(3) contains a maximum of

NL_TEXTMAX characters.
OPENBSD_2_8
aaron 24 years ago
parent
commit
8a0faa7911
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/lib/libc/string/strerror.3

+ 6
- 2
src/lib/libc/string/strerror.3 View File

@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: strerror.3,v 1.3 1999/05/23 14:11:03 aaron Exp $
.\" $OpenBSD: strerror.3,v 1.4 2000/10/23 19:14:41 aaron Exp $
.\"
.Dd June 29, 1991
.Dt STRERROR 3
@ -49,7 +49,11 @@
The
.Fn strerror
function returns a pointer to the language-dependent error message
string affiliated with an error number.
string affiliated with the specified error number
.Fa errnum .
The returned string contains a maximum of
.Dv NL_TEXTMAX
characters, including the trailing NUL.
.Pp
The array pointed to is not to be modified by the program, but may be
overwritten by subsequent calls to


Loading…
Cancel
Save