aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index 829e7d1..2935600 100644
--- a/util.c
+++ b/util.c
@@ -8,6 +8,7 @@ static void replace(char a[], char b[], int x, int y);
#define POOLSIZE 10000
static int ipool[POOLSIZE];
static int *ipoolp = ipool;
+
int* get_intarray(int size)
{
if(ipoolp + size > ipool + POOLSIZE) ipoolp = ipool;
@@ -18,6 +19,7 @@ int* get_intarray(int size)
static char cpool[POOLSIZE];
static char *cpoolp = cpool;
+
char* get_chararray(int size)
{
if(cpoolp + size > cpool + POOLSIZE) cpoolp = cpool;
bgstack15