2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
6 /*****************************************************************************
10 #include <dos/dosextens.h>
11 #include <proto/icon.h>
12 #include <proto/dos.h>
15 extern struct Library
*IconBase
;
26 Returns the value associated with the string 'entry' found in the
27 tooltypes array 'tt'. If no match with entry was found,
28 'defaultval' is returned.
31 tt -- the tooltypes array ( returned by ArgArrayInit() )
32 entry -- entry to look for (in tooltype "entry=value")
33 defaultval -- value returned if 'entry' was not found
36 (The tooltypes looks like "Entry=Value".) Returns Value if Entry
37 was found; otherwise returns 'defaultval'.
49 The Amiga documentation says "requires that dos.library V36 or
50 higher is opened". I can't see why.
52 *****************************************************************************/
55 LONG result
= defaultval
;
57 if((match
= FindToolType(tt
, entry
)) == NULL
)
60 StrToLong(match
, &result
);