]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/bstring.3
getent.1, iconv.1, ldd.1, locale.1, localedef.1, memusage.1, memusagestat.1, pldd...
[thirdparty/man-pages.git] / man3 / bstring.3
CommitLineData
fea681da
MK
1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
fea681da
MK
24.\"
25.\" References consulted:
26.\" Linux libc source code
27.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28.\" 386BSD man pages
29.\" Modified 1993-04-12, David Metcalfe
30.\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu)
31.\" Modified 2002-01-20, Walter Harms
9ba01802 32.TH BSTRING 3 2019-03-06 "" "Linux Programmer's Manual"
fea681da 33.SH NAME
c13182ef 34bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem,
fea681da
MK
35memmove, memset \- byte string operations
36.SH SYNOPSIS
37.nf
38.B #include <string.h>
68e4db0a 39.PP
6b0e4280 40.BI "int bcmp(const void *" s1 ", const void *" s2 ", size_t " n );
68e4db0a 41.PP
6b0e4280 42.BI "void bcopy(const void *" src ", void *" dest ", size_t " n );
68e4db0a 43.PP
6b0e4280 44.BI "void bzero(void *" s ", size_t " n );
68e4db0a 45.PP
fea681da 46.BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
68e4db0a 47.PP
fea681da 48.BI "void *memchr(const void *" s ", int " c ", size_t " n );
68e4db0a 49.PP
fea681da 50.BI "int memcmp(const void *" s1 ", const void *" s2 ", size_t " n );
68e4db0a 51.PP
fea681da 52.BI "void *memcpy(void *" dest ", const void *" src ", size_t " n );
68e4db0a 53.PP
fea681da 54.BI "void *memfrob(void *" s ", size_t " n );
68e4db0a 55.PP
ebbb0265
MK
56.BI "void *memmem(const void *" haystack ", size_t " haystacklen ,
57.BI " const void *" needle ", size_t " needlelen );
68e4db0a 58.PP
fea681da 59.BI "void *memmove(void *" dest ", const void *" src ", size_t " n );
68e4db0a 60.PP
fea681da
MK
61.BI "void *memset(void *" s ", int " c ", size_t " n );
62.fi
63.SH DESCRIPTION
64The byte string functions perform operations on strings (byte arrays)
c13182ef
MK
65that are not necessarily null-terminated.
66See the individual man pages
fea681da 67for descriptions of each function.
19c98696 68.SH NOTES
fea681da
MK
69The functions
70.BR bcmp (),
71.BR bcopy ()
72and
73.BR bzero ()
c13182ef
MK
74are obsolete.
75Use
fea681da
MK
76.BR memcmp (),
77.BR memcpy ()
78and
79.BR memset ()
80instead.
81.\" The old functions are not even available on some non-GNU/Linux systems.
47297adb 82.SH SEE ALSO
fea681da
MK
83.BR bcmp (3),
84.BR bcopy (3),
85.BR bzero (3),
86.BR memccpy (3),
87.BR memchr (3),
88.BR memcmp (3),
89.BR memcpy (3),
90.BR memfrob (3),
91.BR memmem (3),
92.BR memmove (3),
93.BR memset (3)