xref: /386bsd/usr/share/man/cat3/calloc.0 (revision a2142627)
1CALLOC(3)                 386BSD Programmer's Manual                 CALLOC(3)
2
3NNAAMMEE
4     ccaalllloocc - allocate clean memory (zero initialized space)
5
6SSYYNNOOPPSSIISS
7     ##iinncclluuddee <<ssttddlliibb..hh>>
8
9     _v_o_i_d *
10     ccaalllloocc(_s_i_z_e__t _n_m_e_m_b, _s_i_z_e__t _s_i_z_e)
11
12DDEESSCCRRIIPPTTIIOONN
13     The ccaalllloocc() function allocates space for an array of _n_m_e_m_b objects, each
14     of whose size is _s_i_z_e. The space is initialized to all bits zero.
15
16RREETTUURRNN VVAALLUUEESS
17     The ccaalllloocc() function returns a pointer to the the allocated space if
18     successful; otherwise a null pointer is returned.
19
20SSEEEE AALLSSOO
21     malloc(3),  realloc(3),  free(3),
22
23SSTTAANNDDAARRDDSS
24     The ccaalllloocc() function conforms to ANSI C3.159-1989 (``ANSI C'').
25
26BSD Experimental                 June 29, 1991                               1
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