1AUTALLOCBLOCK(3) AUT FUNCTIONS AUTALLOCBLOCK(3)
2
3
4
6 autallocblock - memory allocator
7
9 #include "aut101.h"
10 char *autallocblock( Size )
11 unsigned int Size;
12
14 Size Number of memory bytes to be contiguously allocated
15
16
17 DESCRIPTION
18 autallocblock returns a block of Size bytes length. The memory
19 block is set to zero.
20
22 autallocblock returns a pointer to a Size bytes long block.
23
25 "autalloc: alloc error, can't continue !"
26 System break can't be moved anymore, no more memory can be
27 retrieved from the system.
28
30 #include "aut101.h"
31 char ∗dup_str(s)
32 char ∗ s;
33 {
34 char ∗t = (char ∗)autalocblock(strlen(s) + (unsigned int)1);
35 strcpy(t, s); return t;
36 }
37
39 aut(1), autresizeblock(3), autallocheap(3), autfreeblock(3), autfree‐
40 heap(3).
41
42
43
44
45
46
47ASIM/LIP6 October 1, 1997 AUTALLOCBLOCK(3)