TIOCGPGRP copies an int out of the kernel
[unix-history] / usr / src / lib / libc / string / bcmp.3
CommitLineData
cce55ae2
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" %sccs.include.redist.man%
8.\"
b8dfab23 9.\" @(#)bcmp.3 5.2 (Berkeley) %G%
cce55ae2
KB
10.\"
11.TH BCMP 3 ""
12.UC 7
13.SH NAME
14bcmp \- compare byte string
15.SH SYNOPSIS
16.nf
17.ft B
18#include <string.h>
19
20int
21bcmp(const char *b1, const char *b2, size_t len);
22.ft R
23.fi
24.SH DESCRIPTION
25.B Bcmp
26compares byte string
27.I b1
28against byte string
29.IR b2 ,
30returning zero if they are identical, non-zero otherwise.
31Both strings are assumed to be
32.I len
33bytes long.
34Zero-length strings are always identical.
35.PP
36The strings may overlap.
37.SH SEE ALSO
b8dfab23 38bcmp(3), memcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strxfrm(3)