(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/iffparse.h>

struct LocalContextItem * AllocLocalItem (type , id , ident , dataSize)

LOCATION
In IFFParseBase at offset 31

SYNOPSIS
LONG type
LONG id
LONG ident
ULONG dataSize

FUNCTION
Allocates and initializes a LocalContextItem structure. It also allocates dataSize user data. User data can be accesseed via LocalItemData function. This is the only way to allocate such a item, since the item contains private fields. Of course programmers should assume NOTHING about this private fields.

INPUTS
type, id
Longword identifications values.
ident
Longword identifier for class of item.
dataSize
Size of a user data area that will be allocated by this funcyion.

RESULT
item - A initialized LocalContextItem structure.

EXAMPLE

SEE ALSO
FreeLocalItem(), LocalItemData(), StoreLocalItem(), StoreItemInContext(), SetLocalItemPurge()

NOTES
Changed dataSize parameter to ULONG, negative-sized memory allocations are undefined.

BUGS
See notes.

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
03.02.1997 digulla
Iffparse.library as supplied by Nils H. Lorentzen