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 | * iniDelete |
19 | * |
20 | ******************************/ |
21 | int iniDelete( HINI hIni ) |
22 | { |
23 | |
24 | /* SANITY CHECKS */ |
25 | if ( hIni == NULL ) |
26 | return INI_ERROR; |
27 | |
28 | /* REMOVE ALL SUBORDINATE INFO */ |
29 | iniObjectFirst( hIni ); |
30 | while ( iniObjectDelete( hIni ) == INI_SUCCESS ) |
31 | { |
32 | } |
33 | |
34 | return INI_SUCCESS; |
35 | } |
36 | |
37 | |
38 | |