|
Previous: utility.library/FreeTagItems |
TOC: Table of Contents |
Index: All Documents |
Next: utility.library/GetUniqueID |
| Title: |
| 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'. |
| Parameters: |
| tagValue - tag value to search for. defaultVal - value to be returned if tagValue is not found. tagList - the tag list to search. |
| Results: |
| value - the ti_Data value for the first matching TagItem, or 'default' if a ti_Tag matching 'Tag' is not found. |
| Related topics: |
| <utility/tagitem.h>, FindTagItem(), PackBoolTags(), NextTagItem() |