1BZERO(P) POSIX Programmer's Manual BZERO(P)
2
3
4
6 bzero - memory operations (LEGACY)
7
9 #include <strings.h>
10
11 void bzero(void *s, size_t n);
12
13
15 The bzero() function shall place n zero-valued bytes in the area
16 pointed to by s.
17
19 The bzero() function shall not return a value.
20
22 No errors are defined.
23
24 The following sections are informative.
25
27 None.
28
30 The memset() function is preferred over this function.
31
32 For maximum portability, it is recommended to replace the function call
33 to bzero() as follows:
34
35
36 #define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
37
39 None.
40
42 This function may be withdrawn in a future version.
43
45 memset() , the Base Definitions volume of IEEE Std 1003.1-2001,
46 <strings.h>
47
49 Portions of this text are reprinted and reproduced in electronic form
50 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
51 -- Portable Operating System Interface (POSIX), The Open Group Base
52 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
53 Electrical and Electronics Engineers, Inc and The Open Group. In the
54 event of any discrepancy between this version and the original IEEE and
55 The Open Group Standard, the original IEEE and The Open Group Standard
56 is the referee document. The original Standard can be obtained online
57 at http://www.opengroup.org/unix/online.html .
58
59
60
61IEEE/The Open Group 2003 BZERO(P)