Removed incomplete file search tool. It was in "contrib"
[AROS-Contrib.git] / libini / iniPropertyFirst.c
blob072aa4e7e53000507c60cc9b9ae686b6b0b1803d
1 /**********************************************************************************
2 * .
5 **************************************************
6 * This code was created by Peter Harvey @ CodeByDesign.
7 * Released under LGPL 28.JAN.99
9 * Contributions from...
10 * -----------------------------------------------
11 * Peter Harvey - pharvey@codebydesign.com
12 **************************************************/
14 #include "inifile_intern.h"
15 #include "ini.h"
16 #include <aros/libcall.h>
18 /*****************************************************************************
19 NAME */
20 AROS_LH1(int, iniPropertyFirst,
22 /* SYNOPSIS */
23 AROS_LHA(HINI, hIni, D0),
25 /* LOCATION */
26 struct Library *, inifileBase, 33, inifile)
28 /* FUNCTION
30 INPUTS
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 HISTORY
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 /* SANITY CHECKS */
51 if ( hIni == NULL )
52 return INI_ERROR;
54 if ( hIni->hCurObject == NULL )
55 return INI_NO_DATA;
57 hIni->hCurProperty = hIni->hCurObject->hFirstProperty;
59 if ( hIni->hCurProperty == NULL )
60 return INI_NO_DATA;
62 return INI_SUCCESS;
64 AROS_LIBFUNC_EXIT
65 } /* iniPropertyFirst */