File: iniObjectFirst.c

package info (click to toggle)
unixodbc 2.3.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,888 kB
  • sloc: ansic: 87,605; makefile: 1,127; sh: 1,060; yacc: 974; sql: 1
file content (35 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (7)
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;
}