This file is the source codes in the book 'C Interfaces and Implementations'. 更多...
#include <stdlib.h>
#include <stddef.h>
#include <assert.h>
#include "../include_cii/except.h"
#include "../include_cii/mem.h"
函数 | |
void * | Mem_alloc (long nbytes, const char *file, int line) |
void * | Mem_calloc (long count, long nbytes, const char *file, int line) |
void | Mem_free (void *ptr, const char *file, int line) |
void * | Mem_resize (void *ptr, long nbytes, const char *file, int line) |
变量 | |
const Except_T | Mem_Failed = { (char*)"Allocation Failed" } |
This file is the source codes in the book 'C Interfaces and Implementations'.
在文件 mem.c 中定义.
void * Mem_calloc | ( | long | count, |
long | nbytes, | ||
const char * | file, | ||
int | line | ||
) |
void * Mem_resize | ( | void * | ptr, |
long | nbytes, | ||
const char * | file, | ||
int | line | ||
) |