malloc.c

来自「speech signal process tools」· C语言 代码 · 共 66 行

C
66
字号
/* * This material contains unpublished, proprietary software of  * Entropic Research Laboratory, Inc. Any reproduction, distribution,  * or publication of this work must be authorized in writing by Entropic  * Research Laboratory, Inc., and must bear the notice:  * *    "Copyright (c) 1990-1991  Entropic Research Laboratory, Inc.  *                   All rights reserved" * * The copyright notice above does not evidence any actual or intended  * publication of this source code.      * * Written by:  Alan Parker * Checked by: * Revised by: * * Brief description: * */static char *sccs_id = "@(#)malloc.c	1.2	12/1/93	ERL";#include <stdio.h>#ifdef DEC_ALPHAchar *malloc();char *calloc();#endif#ifndef IBM_RS6000char *ecalloc(nelem, elsize)#elsevoid *ecalloc(nelem, elsize)#endifunsigned nelem, elsize;{#ifdef DEBUGfprintf(stderr,"calloc: nelem: %d, elsize: %d\n",nelem,elsize);#endifif (elsize && nelem)  return (calloc(nelem, elsize));else  return 1;}#ifndef IBM_RS6000char *emalloc(size)#elsevoid *emalloc(size)#endifunsigned size;{#ifdef DEBUGfprintf(stderr,"malloc: size: %d\n",size);#endifif (size)  return (malloc(size));else  return 1;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?