a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 iffparse.library
  AllocIFF
  AllocLocalItem
  CloseClipboard
  CloseIFF
  CollectionChunk
  CollectionChunks
  CurrentChunk
  EntryHandler
  ExitHandler
  FindCollection
  FindLocalItem
  FindProp
  FindPropContext
  FreeIFF
  FreeLocalItem
  GoodID
  GoodType
  IDtoStr
  InitIFF
  InitIFFasClip
  InitIFFasDOS
  LocalItemData
  OpenClipboard
  OpenIFF
  ParentChunk
  ParseIFF
  PopChunk
  PropChunk
  PropChunks
  PushChunk
  ReadChunkBytes
  ReadChunkRecords
  SetLocalItemPurge
  StopChunk
  StopChunks
  StopOnExit
  StoreItemInContext
  StoreLocalItem
  WriteChunkBytes
  WriteChunkRecords
Include
GuruMeditation
Docs » Autodocs » iffparse.library » AllocLocalItem

NAME

	AllocLocalItem -- create a local context item structure. (V36)

SYNOPSIS

	item = AllocLocalItem(type, id, ident, dataSize);
D0 D0 D1 D2 D3
struct LocalContextItem *AllocLocalItem(LONG, LONG, LONG, LONG);

FUNCTION

	Allocates and initializes a LocalContextItem structure with "dataSize"
bytes of associated user data. This is the only supported way to
create such an item. The user data can be accessed with the
LocalItemData() function. An item created with this function
automatically has its purge vectors set up correctly to dispose of
itself and its associated user data area. Any additional cleanup
should be done with a user-supplied purge vector.

INPUTS

	type,id - additional longword identification values
ident - longword identifier for class of context item
dataSize - number of bytes of user data to allocate for this item

RESULT

	item - pointer to initialized LocalContextItem or NULL if the
allocation failed.

SEE ALSO

FreeLocalItem(), LocalItemData(), StoreLocalItem(), StoreItemInContext(), SetLocalItemPurge(), <libraries/iffparse.h>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Anarchy

TRSI
DJ
ANA
TBL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se