malloc.h,
动态存储分配函数头文件,当对内存区进行操作时,调用相关函数.
ANSI标准建议使用stdlib.h头文件,但许多C编译要求用malloc.h,使用时应查阅有关手册。
文件内容
malloc.h2009-03-19 16:57/* alloc.h
memory management functions and variables.
Copyright (c) Borland International 1987,1988
All Rights Reserved.
*/
#if __STDC__
#define _Cdecl
#else
#define _Cdecl cdecl
#define _STDDEF
#define _PTRDIFF_T
#if defined(__LARGE__) || defined(__HUGE__) || defined(__
COMPACT__)
#else
typedef int ptrdiff_t;
#endif
#define _SIZE_T
#endif
#endif
#ifndef NULL
#if defined(__TINY__) || defined(__
SMALL__) || defined(__MEDIUM__)
#define NULL 0
#else
#define NULL 0L
#endif
int _Cdecl brk (void *addr);
void *_Cdecl calloc (
size_t nitems, size_t size);
#if defined(__
COMPACT__) || defined(__LARGE__) || defined(__HUGE__)
unsigned long _Cdecl coreleft (
void);
#else
unsigned _Cdecl coreleft (void);
#endif
void _Cdecl free (void *block);
void *_Cdecl malloc (
size_t size);
void *_Cdecl realloc (void *block, size_t size);
void *_Cdecl sbrk (int incr);
#if !__STDC__
void far * _Cdecl farcalloc (unsigned long nunits, unsigned long unitsz);
unsigned long _Cdecl farcoreleft(
void);
void _Cdecl farfree (void far *block);
void far *_Cdecl farmalloc (unsigned long nbytes);
void far *_Cdecl farrealloc (void far *oldblock, unsigned long nbytes);