代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5519996
c new6.c
// { dg-do run }
// Test that we properly default-initialize the new int when () is given.
#include
using namespace std;
extern "C" void *malloc (size_t);
int special;
int space = 0xdeadbeef;
www.eeworm.com/read/162614/5521398
c crash31.c
// { dg-do assemble }
// GROUPS passed old-abort
struct mbuf {
struct mbuf *next;
};
void* malloc(int);
struct mbuf *
mbuf_allocate(int size)
{
struct mbuf *bp;
bp = (struct mbuf *) malloc
www.eeworm.com/read/162614/5522287
c new.c
// { dg-do assemble }
// Bug: new doesn't make sure that the count is an integral value.
#include
extern "C" int printf (const char *, ...);
extern "C" void *malloc (size_t);
size_t s;
void *
www.eeworm.com/read/162614/5522366
c new3.c
// { dg-do run }
// { dg-options "-fcheck-new -pedantic" }
// PRMS Id: 6037
extern "C" void * malloc (__SIZE_TYPE__);
int ena = 0;
struct A {
int i;
A () { i = 2; }
void * operator new (__SI
www.eeworm.com/read/162614/5529053
c builtins-13.c
/* Copyright (C) 2003 Free Software Foundation.
Verify that the malloc-like __builtin_ allocation functions are
correctly aliased by the compiler.
Written by Roger Sayle, 12th April 2003.
www.eeworm.com/read/162614/5529058
c m-un-2.c
/* { dg-do compile } */
/* { dg-options "-W -Wall" } */
typedef __SIZE_TYPE__ size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);
struct vtable {
www.eeworm.com/read/161557/5551451
c osip_message_to_str.c
/*
The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
Copyright (C) 2001,2002,2003 Aymeric MOIZARD jack@atosc.org
This library is free software; you can redistribute
www.eeworm.com/read/161438/5554096
c fillheap.c
#include
#include
void main(void)
{
char *buffer1, *buffer2, *buffer3;
int i, state;
buffer1 = malloc(100);
buffer2 = malloc(200);
buffer3 = malloc(300)
www.eeworm.com/read/157427/5606515
c 单链表2.c
#include
#include
struct node{
int key;
struct node *next;
};
void creat_link(struct node *);
main()
{
struct node *head=NULL;
creat_li
www.eeworm.com/read/154890/5632031
c jmemnobs.c
/*
* jmemnobs.c
*
* Copyright (C) 1992-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README fi