summaryrefslogtreecommitdiffstats
path: root/man3/bstring.3
blob: 87b133add9cd46314483c9a9a59be4b1cb5be778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.\" References consulted:
.\"     Linux libc source code
.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\"     386BSD man pages
.\" Modified 1993-04-12, David Metcalfe
.\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu)
.\" Modified 2002-01-20, Walter Harms
.TH bstring 3 2023-01-07 "Linux man-pages 6.05.01"
.SH NAME
bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem,
memmove, memset \- byte string operations
.SH LIBRARY
Standard C library
.RI ( libc ", " \-lc )
.SH SYNOPSIS
.nf
.B #include <string.h>
.PP
.BI "int bcmp(const void " s1 [. n "], const void " s2 [. n "], size_t " n );
.PP
.BI "void bcopy(const void " src [. n "], void " dest [. n "], size_t " n );
.PP
.BI "void bzero(void " s [. n "], size_t " n );
.PP
.BI "void *memccpy(void " dest [. n "], const void " src [. n "], int " c ", \
size_t " n );
.PP
.BI "void *memchr(const void " s [. n "], int " c ", size_t " n );
.PP
.BI "int memcmp(const void " s1 [. n "], const void " s2 [. n "], size_t " n );
.PP
.BI "void *memcpy(void " dest [. n "], const void " src [. n "], size_t " n );
.PP
.BI "void *memfrob(void " s [. n "], size_t " n );
.PP
.BI "void *memmem(const void " haystack [. haystacklen "], size_t " haystacklen ,
.BI "             const void " needle [. needlelen "], size_t " needlelen );
.PP
.BI "void *memmove(void " dest [. n "], const void " src [. n "], size_t " n );
.PP
.BI "void *memset(void " s [. n "], int " c ", size_t " n );
.fi
.SH DESCRIPTION
The byte string functions perform operations on strings (byte arrays)
that are not necessarily null-terminated.
See the individual man pages
for descriptions of each function.
.SH NOTES
The functions
.BR bcmp ()
and
.BR bcopy ()
are obsolete.
Use
.BR memcmp ()
and
.BR memmove ()
instead.
.\" The old functions are not even available on some non-GNU/Linux systems.
.SH SEE ALSO
.BR bcmp (3),
.BR bcopy (3),
.BR bzero (3),
.BR memccpy (3),
.BR memchr (3),
.BR memcmp (3),
.BR memcpy (3),
.BR memfrob (3),
.BR memmem (3),
.BR memmove (3),
.BR memset (3),
.BR string (3)