Files | |
| file | memb.c |
| Memory block allocation routines. 메모리 블록 할당 루틴. | |
| file | memb.h |
| Memory block allocation routines. 메모리 블록 할당 루틴. | |
Modules | |
| Web client | |
| SMTP E-mail sender | |
| Telnet server | |
| Web server | |
Defines | |
| #define | MEMB(name, size, num) |
| Declare a memory block. 메모리 블록 선언. | |
Functions | |
| void | memb_init (struct memb_blocks *m) |
| Initialize a memory block that was declared with MEMB(). MEMB()로 선언된 메모리 블록 초기화. | |
| char * | memb_alloc (struct memb_blocks *m) |
| Allocate a memory block from a block of memory declared with MEMB(). MEMB()로 선언된 메모리 블록으로부터 메모리 블록 할당. | |
| char | memb_ref (struct memb_blocks *m, char *ptr) |
| Increase the reference count for a memory chunk. 메모리를 위한 참조 카운터를 증가. | |
| char | memb_free (struct memb_blocks *m, char *ptr) |
| Deallocate a memory block from a memory block previously declared with MEMB(). MEMB()로 이전에 선언된 메모리 블록으로부터 메모리 블록을 해제. | |
|
|
Value: static char memb_mem[(size + 1) * num]; \ static struct memb_blocks name = {size, num, memb_mem} 메모리 블록 선언
|
|
|
Allocate a memory block from a block of memory declared with MEMB().
|
|
||||||||||||
|
Deallocate a memory block from a memory block previously declared with MEMB().
|
|
|
Initialize a memory block that was declared with MEMB().
|
|
||||||||||||
|
Increase the reference count for a memory chunk.
|
1.3.3