Made UAE buildable again.
[AROS-Contrib.git] / libini / iniObjectSeek.c
blobc29283bab8bc0c64bc7e3fb18b7dca62d2a85bdd
1 /**********************************************************************************
2 * .
5 **************************************************
6 * This code was created by Peter Harvey @ CodeByDesign.
7 * Released under LGPL 28.JAN.99
9 * Contributions from...
10 * -----------------------------------------------
11 * PAH = Peter Harvey - pharvey@codebydesign.com
12 * -----------------------------------------------
14 * PAH 19.MAR.99 Now sets hCurProperty to hFirstProperty when found
15 **************************************************/
17 #include "inifile_intern.h"
18 #include "ini.h"
19 #include <aros/libcall.h>
21 /*****************************************************************************
22 NAME */
23 AROS_LH2(int, iniObjectSeek,
25 /* SYNOPSIS */
26 AROS_LHA(HINI, hIni, D0),
27 AROS_LHA(char *, pszObject, A0),
29 /* LOCATION */
30 struct Library *, inifileBase, 26, inifile)
32 /* FUNCTION
34 INPUTS
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 HISTORY
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 /* SANITY CHECKS */
55 if ( hIni == NULL )
56 return INI_ERROR;
58 iniObjectFirst( hIni );
59 while ( iniObjectEOL( hIni ) == FALSE )
61 if ( strcasecmp( pszObject, hIni->hCurObject->szName ) == 0 )
62 return INI_SUCCESS;
63 iniObjectNext( hIni );
66 return INI_NO_DATA;
68 AROS_LIBFUNC_EXIT
69 } /* iniObjectSeek */