diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-01 18:37:05 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-01 18:37:05 +0100 |
| commit | b0c1cae18066d0103a440894b5256939852021eb (patch) | |
| tree | b90f419aba218eedf1cc664c7269666306e6ccaf /src/zfree.c | |
| parent | Add .gitignore (diff) | |
| download | libzahl-b0c1cae18066d0103a440894b5256939852021eb.tar.gz libzahl-b0c1cae18066d0103a440894b5256939852021eb.tar.bz2 libzahl-b0c1cae18066d0103a440894b5256939852021eb.tar.xz | |
Add zsetup, zunsetup, zinit, zfree, zswap, zsave, zload, zbits, and zlsb
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zfree.c')
| -rw-r--r-- | src/zfree.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/zfree.c b/src/zfree.c new file mode 100644 index 0000000..f75bb38 --- /dev/null +++ b/src/zfree.c @@ -0,0 +1,13 @@ +/* See LICENSE file for copyright and license details. */ +#include "internals" + +#include <stdlib.h> + + +void +zfree(z_t a) +{ + free(a->chars); + a->alloced = 0; + a->chars = 0; +} |
