diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-03-24 15:15:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-03-24 15:15:32 +0000 |
commit | ab1be173858b3f7b0d5b25c737a45ba26ef51ed4 (patch) | |
tree | e541d6f7265e9a862aa536e7c9c92e91f2653510 /lib/libc | |
parent | 1dcff930e9ec8fe859be1f11d640df73ad9b8d5f (diff) |
Document that perror() treats an empty string like NULL.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/perror.3 | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/libc/stdio/perror.3 b/lib/libc/stdio/perror.3 index b7f0ff4af3d..becb2e4a57d 100644 --- a/lib/libc/stdio/perror.3 +++ b/lib/libc/stdio/perror.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: perror.3,v 1.6 2003/06/02 20:18:37 millert Exp $ +.\" $OpenBSD: perror.3,v 1.7 2005/03/24 15:15:31 millert Exp $ .\" .\" Copyright (c) 1980, 1991 Regents of the University of California. .\" All rights reserved. @@ -50,14 +50,12 @@ standard error stream. .Pp If the argument .Fa string -is non-null it is prepended to the message string and separated from it by -a colon and a space -.Pq Ql \&:\ \& . -If -.Fa string -is +is not the .Dv NULL -only the error message string is printed. +pointer and is not zero length, it is prepended to the message string and +separated from it by a colon and a space +.Pq Ql \&:\ \& . +Otherwise, only the error message string is printed. .Pp The contents of the error message string are the same as those returned by .Fn strerror |