home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_06
/
8n06098a
< prev
next >
Wrap
Text File
|
1990-03-22
|
370b
|
20 lines
/*
* Function: alloc_rec
* Purpose: Allocate memory for a Database record,
* checking for an allocation error
* Parameters: None
* Return Value: Pointer to memory, or NULL on error
*/
struct record *alloc_rec(void)
{
struct record *temp;
if ((temp = malloc(sizeof(struct record))) == NULL)
return NULL;
else
return temp;
}