Use dos.library/CreateNewProc() instead of alib/CreateNewProcTags()
[tangerine.git] / compiler / alib / argstring.c
blob51b74c8e61e6f781cdb1adef7322ebad131c79cf
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /*****************************************************************************
8 NAME */
10 #include <dos/dosextens.h>
11 #include <proto/icon.h>
13 extern struct Library *IconBase;
15 STRPTR ArgString(
17 /* SYNOPSIS */
18 UBYTE **tt,
19 STRPTR entry,
20 STRPTR defaultstring)
23 /* FUNCTION
24 Looks for 'entry' in the tooltypes array 'tt'. If not found
25 'defaultstring' is returned, otherwise the string corresponding to
26 'entry' is returned. Say the tooltype Settings=SaveonExit exists
27 within the array, then a pointer to "SaveonExit" is returned when
28 ArgString(tt, "Settings") is done.
30 INPUTS
31 tt -- the tooltype array to search in
32 entry -- the string to look for in the tooltype array
34 RESULT
35 Pointer to the string corresponding to 'entry' in the tooltype
36 array, or 'defaultstring' if 'entry' was not found.
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
45 ArgArrayInit()
47 INTERNALS
49 HISTORY
50 28.04.98 SDuvan implemented
52 *****************************************************************************/
54 STRPTR match;
56 if((match = FindToolType(tt, entry)) == NULL)
57 return defaultstring;
59 return match;
61 } /* ArgArrayInt */