Copyright clean-up (part 1):
[AROS.git] / workbench / classes / datatypes / jpeg / memory.c
blob15ad85657f55e3601a113044019588d66b8ee005
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/memory.h>
7 #include <proto/exec.h>
8 #include <proto/dos.h>
9 #include <stdlib.h>
11 void *malloc(size_t size)
13 return AllocVec(size, MEMF_ANY);
16 void free(void *mem)
18 FreeVec(mem);
21 char *getenv (const char *name)
23 /* This function is not thread-safe */
24 static TEXT buff[128] = {};
26 if (GetVar(name, buff, 128, GVF_BINARY_VAR) == -1)
27 return NULL;
28 else
29 return buff;