combine .cvsignore files into .gitignore file
[sppoc.git] / CipolCore / Common / comfree.c
blobaf9ca69a423045a9b68f84216f506d2aa428b745
1 /***************************************************************/
2 /* This file contains some functions to free common structures */
3 /* memory space. */
4 /***************************************************************/
6 /*** Include files ***/
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <stddef.h>
12 #include "comtypes.h"
13 #include "../System/systypes.h"
14 #include "../Polylib/polytypes.h"
16 #ifdef DBMALLOC
17 # include "malloc.h"
18 #endif
20 /*** Function to free a string ***/
22 void String_Free(s)
23 char *s;
25 if(s!=NULL) free(s);
28 /** Free a list **/
30 void List_Free(TList *list)
32 if(list!=NULL) Expression_Free((TExpression *)list);