IritMalloc
Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index
Return to Main Contents
NAME
IritMalloc()
SYNOPSIS
misc_lib/imalloc.c:235
VoidPtr IritMalloc(unsigned Size, char *ObjType, char *FileName, int LineNum)
VoidPtr IritMalloc(unsigned Size)
DESCRIPTION
Routine to allocate dynamic memory for all IRIT program/tool/libraries.
All requests for dynamic memory should invoke this function.
If the environment variable "IRIT_MALLOC" is set when an IRIT program
is executed, the consistency of the dynamic memory is tested on every
invokation of this routine. See IritTestAllDynMemory function for more.
PARAMETERS:
Size: Size of block to allocate, in bytes.
ObjType: This variable exists iff "#define MALLOC_DEBUG_INFO".
This holds the object descriptions.
FileName: This variable exists iff "#define MALLOC_DEBUG_INFO".
This holds the file name where the call is invoked from.
LineNum: This variable exists iff "#define MALLOC_DEBUG_INFO".
This holds the line number where the call is invoked from.
FUNCTION RETURN VALUE
VoidPtr: A pointer to the allocated block. A function calling this
may assume return value will never be NULL, since no more
memory cases are trapped locally.
SEE ALSO
IritFree,
IritRealloc,
IritTestAllDynMemory,
IritDebugMallocReset,
,
IritDebugMallocSearchPtr,
IritDebugMallocAllocated,
ORIGIN
(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- PARAMETERS:
-
- FUNCTION RETURN VALUE
-
- SEE ALSO
-
- ORIGIN
-
This document was created by
man2html,
using the manual pages.
Time: 07:27:01 GMT, July 20, 2024