Added a test for MUIA_Listview_SelectChange.
[AROS.git] / rom / utility / taginarray.c
blobef6894fabd9f56b88a84a89919f7e5b2b5b9244f
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "intern.h"
9 #include <utility/tagitem.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/utility.h>
16 AROS_LH2(BOOL, TagInArray,
18 /* SYNOPSIS */
19 AROS_LHA(Tag , tagValue, D0),
20 AROS_LHA(Tag *, tagArray, A0),
22 /* LOCATION */
23 struct UtilityBase *, UtilityBase, 15, Utility)
25 /* FUNCTION
26 Determines whether the value tagValue exists in an array of Tags
27 pointed to by tagArray. This array must be contiguous, and must be
28 terminated by TAG_DONE.
30 This is an array of Tags (ie: Tag tagArray[]), not an array of
31 TagItems (ie: struct TagItem tagArray[]).
33 INPUTS
34 tagValue - The value of the Tag to search for.
35 tagArray - The ARRAY of Tag's to scan through.
37 RESULT
38 TRUE if tagValue exists in tagArray
39 FALSE otherwise
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
48 <utility/tagitem.h>, FilterTagItems()
50 INTERNALS
52 HISTORY
53 29-10-95 digulla automatically created from
54 utility_lib.fd and clib/utility_protos.h
55 01-09-96 iaint Implemented from autodoc.
57 *****************************************************************************/
59 AROS_LIBFUNC_INIT
61 while(*tagArray != TAG_DONE)
63 if(*tagArray == tagValue)
64 return TRUE;
65 tagArray++;
67 return FALSE;
69 AROS_LIBFUNC_EXIT
70 } /* TagInArray */