home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sd386v50.zip
/
sd386src.zip
/
XSRVFILE.C
< prev
next >
Wrap
Text File
|
1995-11-02
|
3KB
|
45 lines
/*****************************************************************************/
/* File: IBM INTERNAL USE ONLY */
/* xsrvfile.c 827*/
/* */
/* Description: */
/* */
/* some x-server file access functions. */
/* */
/* History: */
/* */
/* 06/23/93 Created. */
/* */
/*... */
/*... 06/04/93 827 Joe Add remote debug support. */
/*... */
/*****************************************************************************/
#include "all.h"
/*****************************************************************************/
/* Talloc 521*/
/* */
/* Description: */
/* allocate some memory and clear the area. */
/* */
/* Parameters: */
/* size size of space required. */
/* */
/* Return: */
/* void * */
/* */
/*****************************************************************************/
void *
Talloc(UINT size)
{
void *p = malloc(size); /* allocate the storage. */
if(p) /* clear the storage. */
memset(p,0,size); /* */
return(p); /* return pointer to storage. */
}
void *Tfree(void *ptr)
{
free(ptr);
}