diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-21 15:24:21 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-21 15:24:21 +0000 |
commit | f427a49cebae937b58bd921c20803593806f0d90 (patch) | |
tree | 9b34e9c6151a86aa2c4ccd5da3329e545598269f /lib/libc/string/memcmp.3 | |
parent | f3b3a991bbd7e54d2e2f1b8c8bbf4eb4d4d22e28 (diff) |
Flesh out libc string function man pages.
Diffstat (limited to 'lib/libc/string/memcmp.3')
-rw-r--r-- | lib/libc/string/memcmp.3 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/libc/string/memcmp.3 b/lib/libc/string/memcmp.3 index 34c5f608611..db4fef364bd 100644 --- a/lib/libc/string/memcmp.3 +++ b/lib/libc/string/memcmp.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: memcmp.3,v 1.3 1996/12/10 09:06:11 deraadt Exp $ +.\" $OpenBSD: memcmp.3,v 1.4 2000/04/21 15:24:19 aaron Exp $ .\" .Dd June 29, 1991 .Dt MEMCMP 3 @@ -48,8 +48,7 @@ .Sh DESCRIPTION The .Fn memcmp -function -compares byte string +function compares byte string .Fa b1 against byte string .Fa b2 . @@ -59,10 +58,11 @@ bytes long. .Sh RETURN VALUES The .Fn memcmp -function -returns zero if the two strings are identical, +function returns zero if the two strings are identical, otherwise returns the difference between the first two differing bytes -(treated as unsigned char values, so that +(treated as +.Li unsigned char +values, so that .Sq Li \e200 is greater than .Sq Li \&\e0 , @@ -77,6 +77,5 @@ Zero-length strings are always identical. .Sh STANDARDS The .Fn memcmp -function -conforms to +function conforms to .St -ansiC . |