Copyright clean-up (part 1):
[AROS.git] / compiler / arossupport / libfindtagitem.c
blobc45185d5580957203a2bfffc4698374bf16f92ab
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 (tag->ti_Tag == tagValue)
16 return tag;
19 return NULL;