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