home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
programming
/
aztecarp_376
/
src
/
fmalloc.c
< prev
next >
Wrap
Text File
|
1990-08-01
|
277b
|
18 lines
void *
fmalloc(size_t size,ULONG flags)
{
struct mem
{
struct DefaultTracker *tracker;
} *mp;
if(mp = ArpAllocMem(sizeof(struct mem) + size,flags | MEMF_PUBLIC))
{
mp -> tracker = LastTracker;
return((char *)((ULONG)mp + sizeof(struct mem)));
}
return(NULL);
}