代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/228533/14380298
c utah.c
/*
file: utah.c
description: interface to Utah RLE toolkit
author: A. T. Campbell
date: October 27, 1989
*/
#ifndef lint
static char sccsid[] = "%W% %G%"; /* SCCS info */
#endif lint
#inclu
www.eeworm.com/read/227599/14420292
c xmalloc.c
#include
extern char *malloc ();
#ifndef NULL
#define NULL 0
#endif
void *
xmalloc (size)
unsigned size;
{
char *new_mem = malloc (size);
if (new_mem == NULL)
{
fprintf
www.eeworm.com/read/126487/14421247
c rdmalloc.c
/*************************************************************
File Name: RdMalloc.c (RAMDisk 4.1) *
**************************************************************
Programmer: chilong
Last
www.eeworm.com/read/226715/14453825
c mem.c
#include "mem.h"
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*
* Mow-Song, Ng
www.eeworm.com/read/226560/14459622
cpp memcheck.cpp
//: C10:MemCheck.cpp {O}
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Memory allocation tester
#
www.eeworm.com/read/125401/14495114
h stdafx.h
// stdafx.h : 标准系统包含文件的包含文件,
// 或是常用但不常更改的项目特定的包含文件
//
#pragma once
#define WIN32_LEAN_AND_MEAN // 从 Windows 头中排除极少使用的资料
// Windows 头文件:
#include
#include
// C 运行时头文
www.eeworm.com/read/225739/14518335
c xmalloc.c
/*
* xmalloc.c
*
* Simple error-checking version of malloc()
*
*/
#include
#include
void *xmalloc(size_t size)
{
void *p = malloc(size);
if ( !p ) {
fprintf(stderr
www.eeworm.com/read/124907/14526246
cpp aoe网dlg.cpp
// AOE网Dlg.cpp : implementation file
//
#include "stdafx.h"
#include "AOE网.h"
#include "AOE网Dlg.h"
#include
#include
#include
#include
www.eeworm.com/read/225425/14541078
c image.c
#include
#include "image.h"
struct image *image_new(int width, int height)
{
struct image *img = (struct image*)malloc(sizeof(struct image));
if(img)
{
img->width = width;
img->heigh
www.eeworm.com/read/225025/14557539
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 SOFTWARE.