after multiple objections of libtom users [1], we decided to change licensing
[libtomfloat.git] / mpf_clear_multi.c
blob02891d449cbf38989914965b28784d3ebd572a52
1 /* LibTomFloat, multiple-precision floating-point library
3 * LibTomFloat is a library that provides multiple-precision
4 * floating-point artihmetic as well as trigonometric functionality.
6 * This library requires the public domain LibTomMath to be installed.
7 *
8 * This library is free for all purposes without any express
9 * gurantee it works
11 * Tom St Denis, tomstdenis@iahu.ca, http://float.libtomcrypt.org
13 #include <tomfloat.h>
14 #include <stdarg.h>
16 void mpf_clear_multi(mp_float *a, ...)
18 mp_float* next_mp = a;
19 va_list args;
20 va_start(args, a);
21 while (next_mp != NULL) {
22 mpf_clear(next_mp);
23 next_mp = va_arg(args, mp_float*);
25 va_end(args);