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 | * Peter Harvey - pharvey@codebydesign.com |
12 | **************************************************/ |
13 | |
14 | #include <config.h> |
15 | #include "ini.h" |
16 | |
17 | /****************************** |
18 | * iniClose |
19 | * |
20 | * 1. free memory previously allocated for HINI |
21 | * 2. DO NOT save any changes (see iniCommit) |
22 | ******************************/ |
23 | int iniClose( HINI hIni ) |
24 | { |
25 | /* SANITY CHECKS */ |
26 | if ( hIni == NULL ) |
27 | return INI_ERROR; |
28 | |
29 | hIni->hCurObject = hIni->hFirstObject; |
30 | while ( iniObjectDelete( hIni ) == INI_SUCCESS ) |
31 | { |
32 | } |
33 | |
34 | free( hIni ); |
35 | |
36 | return INI_SUCCESS; |
37 | } |
38 | |
39 | |
40 | |