代码搜索:malloc

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

代码结果 10,000
www.eeworm.com/read/162614/5540477

c hook-allocstuff.c

#include #include int main () { char *foo = (char *) malloc (10); strcpy (foo, "hello"); foo = (char *) realloc (foo, 20); printf ("%s", foo); if (strcmp (foo, "hello")
www.eeworm.com/read/162614/5540480

c fail16-frag.c

#include #include #include int main () { struct base { int basic; }; struct derived { struct base common; char extra; }; struct base *bp; bp = (struct base *
www.eeworm.com/read/162614/5540490

c fail30-frag.c

#include #include int foo (int u) { return u*u; } int main () { int *k = malloc(5); int j = foo (k[8]); /* this call argument should be instrumented */ return j; } /* { dg-o
www.eeworm.com/read/162614/5540493

c fail7-frag.c

#include #include #include int main () { char *foo; char *bar; foo = (char *)malloc (12); bar = (char *)malloc (10); memcpy(foo+1, bar+1, 10); return 0; } /* { dg-outp
www.eeworm.com/read/162614/5540508

c fail9-frag.c

#include #include #include int main () { char *foo; char *bar; foo = (char *)malloc (10); bar = (char *)malloc (10); free(foo); bar[4] = 'a'; /* touch source buffer *
www.eeworm.com/read/160391/5571732

c rep_mult.c

/* rep_mult.c repmat first two operands to the size provided by */ /* the third operand, then perform point multiply */ /* 3 input, 1 output
www.eeworm.com/read/159489/5584128

c gsm_create.c

/* * 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/158865/5593037

c xmalloc.c

/* xmalloc.c -- safe versions of malloc and realloc */ /* This file is part of GNU Info, a program for reading online documentation stored in Info format. This file has appeared in prior works
www.eeworm.com/read/158865/5593193

c xmalloc.c

/* xmalloc.c -- safe versions of malloc and realloc */ /* This file is part of GNU Info, a program for reading online documentation stored in Info format. This file has appeared in prior works
www.eeworm.com/read/158865/5593669

h xm-next.h

/* malloc does better with chunks the size of a page. */ #define OBSTACK_CHUNK_SIZE (getpagesize ())