xref: /386bsd/usr/share/man/cat3/alloca.0 (revision a2142627)
1ALLOCA(3)                 386BSD Programmer's Manual                 ALLOCA(3)
2
3NNAAMMEE
4     aallllooccaa - memory allocator
5
6SSYYNNOOPPSSIISS
7     ##iinncclluuddee <<ssttddlliibb..hh>>
8
9     _v_o_i_d *
10     aallllooccaa(_s_i_z_e__t _s_i_z_e)
11
12DDEESSCCRRIIPPTTIIOONN
13     The aallllooccaa() function allocates _s_i_z_e bytes of space in the stack frame of
14     the caller.  This temporary space is automatically freed on return.
15
16RREETTUURRNN VVAALLUUEESS
17     The aallllooccaa() function returns a pointer to the beginning of the allocated
18     space.  If the allocation failed, a NULL pointer is returned.
19
20SSEEEE AALLSSOO
21     brk(2),  pagesize(2) calloc(3),  malloc(3),  realloc(3),
22
23BBUUGGSS
24     The aallllooccaa() function is machine dependent; its use is discouraged.
25
264th Berkeley Distribution         May 2, 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