34 lines
722 B
C
34 lines
722 B
C
static char sccsid[] = "@(#)78 1.1 src/bos/usr/ccs/lib/libmi/ecalloc.c, cmdpse, bos411, 9428A410j 5/7/91 13:08:06";
|
|
/*
|
|
* COMPONENT_NAME: CMDPSE
|
|
*
|
|
*
|
|
* ORIGINS: 27 63
|
|
*
|
|
*
|
|
* (C) COPYRIGHT International Business Machines Corp. 1991
|
|
* All Rights Reserved
|
|
* Licensed Materials - Property of IBM
|
|
* US Government Users Restricted Rights - Use, duplication or
|
|
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
*/
|
|
|
|
/** Copyright (c) 1990 Mentat Inc.
|
|
** ecalloc.c 2.1, last change 11/14/90
|
|
**/
|
|
|
|
|
|
#include <pse/clib.h>
|
|
|
|
char *
|
|
ecalloc (nelem, elsize)
|
|
unsigned nelem;
|
|
unsigned elsize;
|
|
{
|
|
char * ptr;
|
|
|
|
if (!(ptr = calloc(nelem, elsize)))
|
|
err_set_str("out of memory");
|
|
return ptr;
|
|
}
|