代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/328558/13021044
h stdafx.h
// stdafx.h : 标准系统包含文件的包含文件,
// 或是经常使用但不常更改的
// 特定于项目的包含文件
//
#pragma once
#define WIN32_LEAN_AND_MEAN // 从 Windows 头中排除极少使用的资料
#include
#include
#include "malloc.h"
www.eeworm.com/read/326893/13110199
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/139529/13150854
h memalloc.h
#ifndef _memalloc_h_
#define _memalloc_h_
#include
#include
#include
// inline functions
inline void *Malloc(int x)
{
void *p;
p=malloc(x);
www.eeworm.com/read/326222/13155039
c mem.c
#include "mem.h"
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*
* Mow-Song, Ng
www.eeworm.com/read/241084/13170760
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/240985/13181196
cpp demo11_1.cpp
// Demo11_1
#include "btreint.h"
#define n 31 //最大下标
void createbitre(bitre &t,int l,int h) //算法
{
int m;
if (l>h) t=NULL; //查找范围为空时对应的判定树为空
else{
t=(bitre)malloc(sizeof(str
www.eeworm.com/read/240985/13181281
cpp key03_7.cpp
// Test03_7
#include "linklist.h"
void Interset(link &l1,link &l2,link &l3)
{
link p,q,r,s;
l3=(link)malloc(sizeof(struct node));
r=l3;
p=l1->next;
q=
www.eeworm.com/read/240985/13181918
cpp emp5_24.cpp
// emp5_24
#include "btreint.h"
const int n=31;
void createt(bitre &t,int l,int h)
{
int m;
if (l>h) t=NULL;
else{
t=(bitre)malloc(sizeof(struct bnode));
m=(l+h) / 2;
t->data=m;
www.eeworm.com/read/325688/13190896
c mem.c
#include "mem.h"
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*
* Mow-Song, Ng
www.eeworm.com/read/138638/13227499
h alloc.h
/*
** Definitions for a less error-prone memory allocator.
*/
#include
#define malloc DON'T CALL malloc DIRECTLY!
#define MALLOC(num,type) (type *)alloc( (num) * sizeof(type) )
ex