2 * IR toolkit for tcl/tk
4 * See the file LICENSE for details.
5 * Sebastian Hammer, Adam Dickmeiss
8 * Revision 1.1 1995-08-04 11:32:40 adam
9 * More work on output queue. Memory related routines moved
22 * ir_tcl_malloc: Allocate n byte from the heap
24 void *ir_tcl_malloc (size_t n)
29 logf (LOG_FATAL, "Out of memory. %ld bytes requested", (long) n);
36 * ir_tcl_strdup: Duplicate string
38 int ir_tcl_strdup (Tcl_Interp *interp, char** p, const char *s)
45 *p = malloc (strlen(s)+1);
48 interp->result = "strdup fail";
56 * ir_strdel: Delete string
58 int ir_tcl_strdel (Tcl_Interp *interp, char **p)