Removed incomplete file search tool. It was in "contrib"
[AROS-Contrib.git] / libini / iniObject.c
blob7a3d82d0be0937c3625fe19ba6af588da506bff1
1 /**********************************************************************************
2 * .
3 *
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_LH2(int, iniObject,
22 /* SYNOPSIS */
23 AROS_LHA(HINI, hIni, D0),
24 AROS_LHA(char *, pszObject, A0),
26 /* LOCATION */
27 struct Library *, inifileBase, 19, inifile)
29 /* FUNCTION
31 INPUTS
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 HISTORY
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 /* SANITY CHECKS */
52 if ( hIni == NULL )
53 return INI_ERROR;
55 if ( hIni->hCurObject == NULL )
56 return INI_NO_DATA;
58 /* Ok */
59 strncpy( pszObject, hIni->hCurObject->szName, INI_MAX_OBJECT_NAME );
61 return INI_SUCCESS;
63 AROS_LIBFUNC_EXIT
64 } /* iniObject */