2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/utility.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH2(LONG
, FindArg
,
19 AROS_LHA(CONST_STRPTR
, template, D1
),
20 AROS_LHA(CONST_STRPTR
, keyword
, D2
),
23 struct DosLibrary
*, DOSBase
, 134, Dos
)
41 *****************************************************************************/
48 /* Loop over template */
51 /* Compare key to template */
57 /* If the keyword has ended check the template */
60 if(!*template||*template=='='||*template=='/'||*template==',')
61 /* The template has ended, too. Return count. */
63 /* The template isn't finished. Stop comparison. */
66 /* If the two differ stop comparison. */
68 if(lkey
!=ToLower(*template))
70 /* Go to next character */
74 /* Find next keyword in template */