Build Lunapaint from Contrib.
[AROS-Contrib.git] / libini / iniObjectLast.c
blobb85408f04cce5aac880d02338422b06f87eff778
1 /**********************************************************************************
2 * iniObjectLast
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_LH1(int, iniObjectLast,
25 /* SYNOPSIS */
26 AROS_LHA(HINI, hIni, D0),
28 /* LOCATION */
29 struct Library *, inifileBase, 24, inifile)
31 /* FUNCTION
33 INPUTS
35 RESULT
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 /* SANITY CHECKS */
54 if ( hIni == NULL )
55 return INI_ERROR;
57 hIni->hCurObject = hIni->hLastObject;
58 iniPropertyFirst( hIni );
60 if ( hIni->hCurObject == NULL )
61 return INI_NO_DATA;
63 return INI_SUCCESS;
65 AROS_LIBFUNC_EXIT
66 } /* iniObjectLast */