代码搜索:malloc

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

代码结果 10,000
www.eeworm.com/read/435341/1864583

cpp 8_9.cpp

//8_9 #include #include void main() { void* p = malloc(1000000); int i=1; while(p){ p = malloc(1000000); i++; } cout
www.eeworm.com/read/382268/2638424

cpp 8_9.cpp

//8_9 #include #include void main() { void* p = malloc(1000000); int i=1; while(p){ p = malloc(1000000); i++; } cout
www.eeworm.com/read/366702/2880502

c pr21591.c

/* { dg-do compile } */ /* { dg-require-effective-target vect_int } */ struct a { int length; int a1[256]; }; struct a *malloc1(__SIZE_TYPE__) __attribute__((malloc)); void free(void*); void f(
www.eeworm.com/read/414255/11122829

h salloc.h

#ifndef SALLOC_H #define SALLOC_H #include extern void *safe_malloc(size_t size); /* Does malloc(size) with null-pointer check. * Deallocate with free(). */ extern void *sa
www.eeworm.com/read/414255/11123070

h salloc.h

#ifndef SALLOC_H #define SALLOC_H #include extern void *safe_malloc(size_t size); /* Does malloc(size) with null-pointer check. * Deallocate with free(). */ extern void *sa
www.eeworm.com/read/387809/8652737

cpp list.cpp

#include #include #include "list.h" list newList() { list l=(list)malloc(sizeof(*l)); l->element=NULL; l->next=NULL; return l; } int lengthList(list l) { int
www.eeworm.com/read/387809/8652764

cpp list.cpp

#include #include #include "list.h" list newList() { list l=(list)malloc(sizeof(*l)); l->element=NULL; l->next=NULL; return l; } int lengthList(list l) { int
www.eeworm.com/read/284110/8966032

c list.c

#include "../include/list.h" void push(stack_st* stack,char* value) { list_t* plist = (list_t*)malloc(sizeof(list_t) + strlen(value) + 1); if(plist == NULL) { printf("malloc error\n"); return
www.eeworm.com/read/140797/7146867

c free.c

/* * free.c * * Very simple linked-list based malloc()/free(). */ #include #include "malloc.h" static struct free_arena_header * __free_block(struct free_arena_header *ah) { struct
www.eeworm.com/read/140797/7147049

c free.c

/* * free.c * * Very simple linked-list based malloc()/free(). */ #include #include "malloc.h" static struct free_arena_header * __free_block(struct free_arena_header *ah) { struct