代码搜索:alloc

找到约 10,000 项符合「alloc」的源代码

代码结果 10,000
www.eeworm.com/read/270669/11030556

c alloc.c

/* memory allocation routines * * Adapted from alloc routine in K&R; memory statistics and interrupt * protection added for use with net package. Must be used in place of * standard Turbo-C li
www.eeworm.com/read/470291/6917580

h alloc.h

/* alloc.h memory management functions and variables. Copyright (c) 1987, 1992 by Borland International All Rights Reserved. */ #if !defined(__ALLOC_H) #define __ALLOC_H #i
www.eeworm.com/read/201685/6943232

c alloc.c

#include "db.h" /* Allocate & initialize a DB structure, and all the buffers it needs */ DB * _db_alloc(int namelen) { DB *db; /* Use calloc, to init structure t
www.eeworm.com/read/366874/6951758

h alloc.h

www.eeworm.com/read/135045/7108913

h alloc.h

www.eeworm.com/read/464339/7165129

h alloc.h

www.eeworm.com/read/462821/7195336

h alloc.h

/* alloc.h memory management functions and variables. Copyright (c) 1987, 1991 by Borland International All Rights Reserved. */ #if !defined(__ALLOC_H) #define __ALLOC_H #i
www.eeworm.com/read/461831/7218831

h alloc.h

//定义一个不易发生错误的内存分配器。 #include #define malloc //不要直接调用malloc #define MALLOC( num, type ) ( type * )alloc( num * sizeof( type ) ) extern void *alloc( size_t size );
www.eeworm.com/read/461831/7218839

c alloc.c

//不易发生错误的内存分配器的实现。 #include #include "alloc.h" #undef malloc void *alloc( size_t size ) { void *new_mem; //请求所需的内存,并检查确实分配成功。 new_mem = malloc( size ); if( new_mem == NULL
www.eeworm.com/read/461713/7221668

h alloc.h

/* alloc.h memory management functions and variables. Copyright (c) 1987, 1991 by Borland International All Rights Reserved. */ #if !defined(__ALLOC_H) #define __ALLOC_H #i