a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 utility.library
  AddNamedObject
  AllocNamedObjectA
  AllocateTagItems
  Amiga2Date
  ApplyTagChanges
  AttemptRemNamedObject
  CallHookPkt
  CheckDate
  CloneTagItems
  Date2Amiga
  FilterTagChanges
  FilterTagItems
  FindNamedObject
  FindTagItem
  FreeNamedObject
  FreeTagItems
  GetTagData
  GetUniqueID
  MapTags
  NamedObjectName
  NextTagItem
  PackBoolTags
  PackStructureTags
  RefreshTagItemClones
  ReleaseNamedObject
  RemNamedObject
  SDivMod32
  SMult32
  SMult64
  Stricmp
  Strnicmp
  TagInArray
  ToLower
  ToUpper
  UDivMod32
  UMult32
  UMult64
  UnpackStructureTags
Include
GuruMeditation
Docs » Autodocs » utility.library » GetTagData

NAME

	GetTagData -- obtain the data corresponding to a tag. (V36)

SYNOPSIS

	value = GetTagData(tagValue,defaultVal,tagList);
D0 D0 D1 A0
ULONG GetTagData(Tag,ULONG,struct TagItem *);

FUNCTION

	Searches a tag list for a matching tag, and returns the
corresponding ti_Data value for the TagItem found. If no match is
found, this function returns the value passed in as 'default'.

INPUTS

	tagValue - tag value to search for.
defaultVal - value to be returned if tagValue is not found.
tagList - the tag list to search.

RESULT

	value - the ti_Data value for the first matching TagItem, or 'default'
if a ti_Tag matching 'Tag' is not found.

SEE ALSO

<utility/tagitem.h>, FindTagItem(), PackBoolTags(), NextTagItem()

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:

Phenomena

TBL
PHA
ANA
ATX

Comments:

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