summaryrefslogtreecommitdiff
path: root/sim/src/allocate.h
blob: 6bc4e887414b675de315a3a1d39f2b8e8c3be77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2005-2006 Nanorex, Inc.  See LICENSE file for details. 
#ifndef ALLOCATE_H_INCLUDED
#define ALLOCATE_H_INCLUDED

#define RCSID_ALLOCATE_H  "$Id$"

extern void *allocate(int size);

extern void *reallocate(void *p, int size);

extern char *copy_string(char *s);

extern void *copy_memory(void *src, int len);

extern void *accumulator(void *old, unsigned int len, int zerofill);

extern void destroyAccumulator(void *a);

extern char *replaceExtension(char *template, char *newExtension);

#endif