]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) |
2 | .\" | |
4b72fb64 | 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 | |
32 | .TH BSTRING 3 2002-01-20 "" "Linux Programmer's Manual" | |
33 | .SH NAME | |
c13182ef | 34 | bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem, |
fea681da MK |
35 | memmove, memset \- byte string operations |
36 | .SH SYNOPSIS | |
37 | .nf | |
38 | .B #include <string.h> | |
39 | .sp | |
40 | .BI "int bcmp(const void *" s1 ", const void *" s2 ", int " n ); | |
41 | .sp | |
42 | .BI "void bcopy(const void *" src ", void *" dest ", int " n ); | |
43 | .sp | |
44 | .BI "void bzero(void *" s ", int " n ); | |
45 | .sp | |
46 | .BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n ); | |
47 | .sp | |
48 | .BI "void *memchr(const void *" s ", int " c ", size_t " n ); | |
49 | .sp | |
50 | .BI "int memcmp(const void *" s1 ", const void *" s2 ", size_t " n ); | |
51 | .sp | |
52 | .BI "void *memcpy(void *" dest ", const void *" src ", size_t " n ); | |
53 | .sp | |
54 | .BI "void *memfrob(void *" s ", size_t " n ); | |
55 | .sp | |
56 | .BI "void *memmem(const void *" needle ", size_t " needlelen , | |
62218dc0 | 57 | .BI " const void *" haystack ", size_t " haystacklen ); |
fea681da MK |
58 | .sp |
59 | .BI "void *memmove(void *" dest ", const void *" src ", size_t " n ); | |
60 | .sp | |
61 | .BI "void *memset(void *" s ", int " c ", size_t " n ); | |
62 | .fi | |
63 | .SH DESCRIPTION | |
64 | The byte string functions perform operations on strings (byte arrays) | |
c13182ef MK |
65 | that are not necessarily null-terminated. |
66 | See the individual man pages | |
fea681da | 67 | for descriptions of each function. |
19c98696 | 68 | .SH NOTES |
fea681da MK |
69 | The functions |
70 | .BR bcmp (), | |
71 | .BR bcopy () | |
72 | and | |
73 | .BR bzero () | |
c13182ef MK |
74 | are obsolete. |
75 | Use | |
fea681da MK |
76 | .BR memcmp (), |
77 | .BR memcpy () | |
78 | and | |
79 | .BR memset () | |
80 | instead. | |
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) |