1 | /********************************************************************************** |
2 | * . |
3 | * |
4 | * |
5 | ************************************************** |
6 | * This code was created by Peter Harvey @ CodeByDesign. |
7 | * Released under LGPL 28.JAN.99 |
8 | * |
9 | * Contributions from... |
10 | * ----------------------------------------------- |
11 | * PAH = Peter Harvey - pharvey@codebydesign.com |
12 | * ----------------------------------------------- |
13 | * |
14 | * PAH 19.MAR.99 Now sets hCurProperty to hFirstProperty when found |
15 | **************************************************/ |
16 | |
17 | #include <config.h> |
18 | #include "ini.h" |
19 | |
20 | int iniObjectFirst( HINI hIni ) |
21 | { |
22 | /* SANITY CHECKS */ |
23 | if ( hIni == NULL ) |
24 | return INI_ERROR; |
25 | |
26 | hIni->hCurObject = hIni->hFirstObject; |
27 | iniPropertyFirst( hIni ); |
28 | |
29 | if ( hIni->hCurObject == NULL ) |
30 | return INI_NO_DATA; |
31 | |
32 | return INI_SUCCESS; |
33 | } |
34 | |
35 | |
36 | |