1bstring(3C)              Standard C Library Functions              bstring(3C)
2
3
4

NAME

6       bstring, bcopy, bcmp, bzero - memory operations
7

SYNOPSIS

9       #include <strings.h>
10
11       void bcopy(const void *s1, void *s2, size_t n);
12
13
14       int bcmp(const void *s1, const void *s2, size_t n);
15
16
17       void bzero(void *s, size_t n);
18
19

DESCRIPTION

21       The   bcopy(),  bcmp(), and bzero() functions operate as efficiently as
22       possible on memory areas (arrays of bytes bounded by a count, not  ter‐
23       minated by a null character).  They do not check for  the  overflow  of
24       any receiving memory area.  These functions are  similar  to  the  mem‐
25       cpy(),  memcmp(),  and  memset()  functions described on the memory(3C)
26       manual page.
27
28
29       The bcopy() function copies n bytes from memory area s1 to s2.  Copying
30       between objects that overlap will take place correctly.
31
32
33       The  bcmp()  function  compares  the  first  n  bytes of its arguments,
34       returning 0 if they are identical and 1 otherwise. The bcmp()  function
35       always returns 0 when n is 0.
36
37
38       The bzero() function sets the first n bytes in memory area s to 0.
39

WARNINGS

41       The  bcopy()  function  takes  parameters backwards from memcmp().  See
42       memory(3C).
43

ATTRIBUTES

45       See attributes(5) for descriptions of the following attributes:
46
47
48
49
50       ┌─────────────────────────────┬─────────────────────────────┐
51       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │Interface Stability          │Standard                     │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │MT-Level                     │MT-Safe                      │
56       └─────────────────────────────┴─────────────────────────────┘
57

SEE ALSO

59       memory(3C), attributes(5), standards(5)
60
61
62
63SunOS 5.11                        15 Apr 2002                      bstring(3C)
Impressum