xref: /csrg-svn/lib/libc/string/bstring.3 (revision 61193)
1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993
2*61193Sbostic.\"	The Regents of the University of California.  All rights reserved.
320482Smckusick.\"
441986Sbostic.\" This code is derived from software contributed to Berkeley by
541986Sbostic.\" Chris Torek.
641986Sbostic.\" %sccs.include.redist.man%
741986Sbostic.\"
8*61193Sbostic.\"     @(#)bstring.3	8.1 (Berkeley) 06/04/93
941986Sbostic.\"
1048351Scael.Dd
1148351Scael.Dt BSTRING 3
1248351Scael.Os
1348351Scael.Sh NAME
1448351Scael.Nm bcmp ,
1548351Scael.Nm bcopy ,
1648351Scael.Nm bzero ,
1748351Scael.Nm memccpy ,
1848351Scael.Nm memchr ,
1948351Scael.Nm memcmp ,
2048351Scael.Nm memcpy ,
2148351Scael.Nm memmove,
2248351Scael.Nm memset
2348351Scael.Nd byte string operations
2448351Scael.Sh SYNOPSIS
2548351Scael.Fd #include <string.h>
2648351Scael.Ft int
2748351Scael.Fn bcmp "const void *b1" "const void *b2" "size_t len"
2848351Scael.Ft void
2948351Scael.Fn bcopy "const void *src" "void *dst" "size_t len"
3048351Scael.Ft void
3148351Scael.Fn bzero "void *b" "size_t len"
3248351Scael.Ft void *
3348351Scael.Fn memchr "const void *b" "int c" "size_t len"
3448351Scael.Ft int
3548351Scael.Fn memcmp "const void *b1" "const void *b2" "size_t len"
3648351Scael.Ft void *
3748351Scael.Fn memccpy "void *dst" "const void *src" "int c" "size_t len"
3848351Scael.Ft void *
3948351Scael.Fn memcpy "void *dst" "const void *src" "size_t len"
4048351Scael.Ft void *
4148351Scael.Fn memmove "void *dst" "const void *src" "size_t len"
4248351Scael.Ft void *
4348351Scael.Fn memset "void *b" "int c" "size_t len"
4448351Scael.Sh DESCRIPTION
4541986SbosticThese functions operate on variable length strings of bytes.
4641986SbosticThey do not check for terminating null bytes as the routines
4741986Sbosticlisted in
4848351Scael.Xr string 3
4920482Smckusickdo.
5048351Scael.Pp
5141986SbosticSee the specific manual pages for more information.
5248351Scael.Sh SEE ALSO
5348351Scael.Xr bcmp 3 ,
5448351Scael.Xr bcopy 3 ,
5548351Scael.Xr bzero 3 ,
5648351Scael.Xr memccpy 3 ,
5748351Scael.Xr memchr 3 ,
5848351Scael.Xr memcmp 3 ,
5948351Scael.Xr memcpy 3 ,
6048351Scael.Xr memmove 3 ,
6148351Scael.Xr memset 3
6248351Scael.Sh STANDARDS
6348351ScaelThe functions
6448351Scael.Fn memchr ,
6548351Scael.Fn memcmp ,
6648351Scael.Fn memcpy ,
6748351Scael.Fn memmove ,
6836311Sbosticand
6948351Scael.Fn memset
7048351Scaelconform to
7148351Scael.St -ansiC .
7248351Scael.Sh HISTORY
7348351ScaelThe functions
7448351Scael.Fn bzero
7548351Scaeland
7648351Scael.Fn memccpy
7748351Scaelappeared in
7848351Scael.Bx 4.3 ;
7948351Scaelthe functions
8048351Scael.Fn bcmp ,
8148351Scael.Fn bcopy ,
8248351Scaelappeared in
8348351Scael.Bx 4.2 .
84