This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/bdd/simplecudd_lfi/allocate.c
Vítor Santos Costa e8e33e405a join cud packages
2015-06-19 01:00:18 +01:00

60 lines
840 B
C

/******************************************************************
**
** ALLOCATE.C:
**
** Allocation Routines
**
** This file is part of Apt Computing Tools (ACT)
** Copyright (c) 1991 -- Apt Technologies
** All rights reserved
**
******************************************************************/
/* ---------- C Headers */
//#include "cheaders.h"
/* ---------- Headers */
#include "apt.h"
#include "allocate.h"
/* ---------- Private Globals */
PRIVATE int bytesAllocated = 0;
/* ---------- Functions */
/*
**
** Allocate
**
*/
PUBLIC
#ifdef __ANSI_C__
void *Allocate(int bytes)
#else
void *Allocate(bytes)
int bytes;
#endif
{
bytesAllocated += bytes;
return (void *)calloc(1,bytes);
}
/*
**
** Free
**
*/
PUBLIC
#ifdef __ANSI_C__
void Free(void *memory)
#else
void Free(memory)
void *memory;
#endif
{
free(memory);
}