代码搜索:malloc

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

代码结果 10,000
www.eeworm.com/read/145180/12746367

c test5.c

/* Tester for yamd. */ #include #include char msg[] = "malloc underrun (should crash if CHECK_FRONT)"; void test(void) { char *p; p = malloc(10); p[-1] = 42; }
www.eeworm.com/read/144708/12775366

c chk_disk.c

#include #include #include void main(void) { struct fatinfo fat; long sector, total_sectors; void *buffer; getfat(3, &fat); total_sectors = fa
www.eeworm.com/read/245187/12811849

c chk_disk.c

#include #include #include void main(void) { struct fatinfo fat; long sector, total_sectors; void *buffer; getfat(3, &fat); total_sectors = fa
www.eeworm.com/read/331272/12835712

c mem.c

#include "mem.h" /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ /* * Mow-Song, Ng
www.eeworm.com/read/244888/12838964

c 3_1_2.c

/* ======================================== */ /* 程式实例: 3_1_2.c */ /* 浮点数记忆体配置和释放 */ /* ======================================== */ #include vo
www.eeworm.com/read/143472/12873050

c bufalloc.c

#include void *bufalloc(size_t *size, size_t minsize) { void *buffer; size_t bufsize; for (bufsize = *size; bufsize >= minsize && !(buffer = malloc(bufsize)); bufsi
www.eeworm.com/read/142515/12942351

cpp gsm_create.cpp

/* * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische * Universitaet Berlin. See the accompanying file "COPYRIGHT" for * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWA
www.eeworm.com/read/329346/12958872

h kernel.h

/* * 'kernel.h'定义了一些常用函数的原型等。 */ // 验证给定地址开始的内存块是否超限。若超限则追加内存。( kernel/fork.c, 24 )。 void verify_area (void *addr, int count); // 显示内核出错信息,然后进入死循环。( kernel/panic.c, 16 )。 void panic (const char *str);
www.eeworm.com/read/329332/12959928

c ag_alloc.c

#include "ag_private.h" #include #include void *agAlloc(uint16 sz) { return PanicNull(malloc(sz)); }
www.eeworm.com/read/142073/12966694

c emalloc.c

extern char* malloc(); /* Malloc that complains and exits when memory is used up. */ char* emalloc(size) int size; { static char msg[] = "C-parser out of memory\n"; char* retval