00001
00002 /*---------------------------------------------------------------------------
00003
00004 File name : twiflat_cfg.c
00005 Author : Juergen Schreiber
00006 Created on : October 2001
00007 Description : creates twiflat_config data structure
00008
00009 *--------------------------------------------------------------------------*/
00010
00011 /*---------------------------------------------------------------------------
00012 Includes
00013 ---------------------------------------------------------------------------*/
00014
00015 #include "twiflat_cfg.h"
00016
00017 /*---------------------------------------------------------------------------
00018 Function codes
00019 ---------------------------------------------------------------------------*/
00020
00021 /*---------------------------------------------------------------------------
00022 Function : twiflat_cfg_create()
00023 In : void
00024 Out : pointer to allocated base twiflat_config structure
00025 Job : allocate memory for a twiflat_config struct
00026 Notice : only the main (base) structure is allocated
00027 ---------------------------------------------------------------------------*/
00028
00029 twiflat_config * twiflat_cfg_create(void)
00030 {
00031 return calloc(1, sizeof(twiflat_config));
00032 }
00033
00034
00035 /*---------------------------------------------------------------------------
00036 Function : twiflat_cfg_destroy()
00037 In : twiflat_config to deallocate
00038 Out : void
00039 Job : deallocate all memory associated with a twiflat_config data structure
00040 Notice :
00041 ---------------------------------------------------------------------------*/
00042
00043 void twiflat_cfg_destroy(twiflat_config * sc)
00044 {
00045 if (sc==NULL) return ;
00046
00047
00048 /* Free main struct */
00049 free(sc);
00050
00051 return ;
00052 }
00053
00054
00055
00056
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001