summaryrefslogtreecommitdiff
path: root/lib/libc/string/strcmp.3
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-06-04 19:14:57 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-06-04 19:14:57 +0000
commitea3aa758f0613eb4538aa90000b1fefafcdc6976 (patch)
tree6c58fae8633b1642bfe1f4b5f0ea28f071694465 /lib/libc/string/strcmp.3
parente288cb3c3b2f3f37b0ec44648cf15b3ce1fa3299 (diff)
some repairs, add example to strdup(3) page
Diffstat (limited to 'lib/libc/string/strcmp.3')
-rw-r--r--lib/libc/string/strcmp.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/strcmp.3 b/lib/libc/string/strcmp.3
index 91e51d68fc7..b8dc8ac4ff9 100644
--- a/lib/libc/string/strcmp.3
+++ b/lib/libc/string/strcmp.3
@@ -33,13 +33,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strcmp.3,v 1.2 1996/08/19 08:34:11 tholo Exp $
+.\" $OpenBSD: strcmp.3,v 1.3 1999/06/04 19:14:56 aaron Exp $
.\"
.Dd June 29, 1991
.Dt STRCMP 3
.Os
.Sh NAME
-.Nm strcmp
+.Nm strcmp,
+.Nm strncmp
.Nd compare strings
.Sh SYNOPSIS
.Fd #include <string.h>
@@ -72,9 +73,8 @@ The comparison is done using unsigned characters, so that
is greater than
.Ql \e0 .
.Pp
-The
.Fn strncmp
-compares not more than
+compares at most
.Fa len
characters.
.Sh SEE ALSO