summaryrefslogtreecommitdiff
path: root/luamem.c
diff options
context:
space:
mode:
Diffstat (limited to 'luamem.c')
-rw-r--r--luamem.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/luamem.c b/luamem.c
index 8c3582c5..a970712e 100644
--- a/luamem.c
+++ b/luamem.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_mem = "$Id: mem.c,v 1.2 1994/11/16 18:09:11 roberto Stab $"; 6char *rcs_mem = "$Id: mem.c,v 1.3 1994/12/20 21:20:36 roberto Exp roberto $";
7 7
8#include <stdlib.h> 8#include <stdlib.h>
9 9
@@ -34,3 +34,10 @@ void *luaI_realloc (void *oldblock, unsigned long size)
34 return block; 34 return block;
35} 35}
36 36
37
38char *luaI_strdup (char *str)
39{
40 char *newstr = luaI_malloc(strlen(str)+1);
41 strcpy(newstr, str);
42 return newstr;
43}