代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/397413/8051955
h 1.h
#include
#include
#include
#include
#include
#include
typedef struct buy_list1{ //购书单
char name[20]; //书名
char author[10]
www.eeworm.com/read/196870/8052774
h xsize.h
/* xsize.h -- Checked size_t computations.
Copyright (C) 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the G
www.eeworm.com/read/396741/8092159
h kernel.h
/*
* 'kernel.h' contains some often-used function prototypes etc
*/
/*
* 'kernel.h'定义了一些常用函数的原型等。
*/
// 验证给定地址开始的内存块是否超限。若超限则追加内存。( kernel/fork.c, 24 )。
void verify_area (void *addr, int count);
// 显示
www.eeworm.com/read/196292/8102199
cpp gsm_create.cpp
/*
* 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.
www.eeworm.com/read/195896/8124408
c mzyengopenc.c
#include
#include
#include
#include
#include
main()
{
FILE *fp1,*fp2;
unsigned char *ch;
char *filename;
int cht,i=1,fen
www.eeworm.com/read/296067/8125596
h nxlib.h
#ifndef _NXLIB_H_
#define _NXLIB_H_
/* Changeable options*/
#define USE_ALLOCA 1 /* set if system has alloca()*/
#define MALLOC_0_RETURNS_NULL 0 /* not yet needed*/
/* required settings*/
#define N
www.eeworm.com/read/296045/8126801
c xmalloc.c
/*
* xmalloc.c
*
* Simple error-checking version of malloc()
*
*/
#include "config.h"
void *xmalloc(size_t size)
{
void *p = malloc(size);
if ( !p ) {
fprintf(stderr, "Out of memory!\n
www.eeworm.com/read/295840/8137586
c bufalloc.c
#include
void *bufalloc(size_t *size, size_t minsize)
{
void *buffer;
size_t bufsize;
for (bufsize = *size; bufsize >= minsize && !(buffer = malloc(bufsize)); bufsi
www.eeworm.com/read/333344/12686337
c pointer2.c
#include
int main()
{
int *p1, *p2, a, b;
a = 1; b = 20;
/*给p1,p2动态分配内存*/
if((p1 = (int *)malloc(sizeof(int))) == NULL)
{
perror(malloc);
return;
}
if((p2 = (int *)ma
www.eeworm.com/read/145879/12697157
txt 从内部破坏系统(2).txt
发信人: lgwu (乱世糊涂虫), 信区: Security
标 题: 从内部破坏系统(2)
发信站: 武汉白云黄鹤站 (Sat Feb 27 17:31:14 1999) , 站内信件
先申明,这次我贴的是完整的程序,而且在任何unix平台上都可以运行并摧毁该系统
对产生的后果,本人概不负责.
**********cut**********