wip commit. acpi button driver.
[AROS.git] / compiler / arossupport / libfindtagitem.c
blob0e657f83eda31085c3688def65f3ebd350a989e5
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/arossupport.h>
8 struct TagItem *LibFindTagItem(Tag tagValue, const struct TagItem *tagList)
10 struct TagItem *tstate = (struct TagItem *)tagList;
11 struct TagItem *tag;
13 while ((tag = LibNextTagItem(&tstate)))
15 if ((ULONG)tag->ti_Tag == (ULONG)tagValue)
16 return tag;
19 return NULL;