Removed the non-working PDTA_Screen from ObtainDTDrawInfo
[AROS-Contrib.git] / libini / iniClose.c
blob77e98d66afbd9336fcea9815f503a6bd2c1ba180
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 /*****************************************************************************
20 NAME */
21 AROS_LH1(int, iniClose,
23 /* SYNOPSIS */
24 AROS_LHA(HINI, hIni, D0),
26 /* LOCATION */
27 struct Library *, inifileBase, 10, inifile)
29 /* FUNCTION
31 INPUTS
33 RESULT
35 NOTES
37 iniClose
39 1. free memory previously allocated for HINI
40 2. DO NOT save any changes (see iniCommit)
42 EXAMPLE
44 BUGS
46 SEE ALSO
48 INTERNALS
50 HISTORY
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 /* SANITY CHECKS */
57 if ( hIni == NULL )
58 return INI_ERROR;
60 hIni->hCurObject = hIni->hFirstObject;
61 while ( iniObjectDelete( hIni ) == INI_SUCCESS )
65 free( hIni );
67 return INI_SUCCESS;
69 AROS_LIBFUNC_EXIT
70 } /* iniClose */