Merge pull request #4 from thesamesam/develop
[libtompoly.git] / pb_clear_multi.c
bloba1dff4ac3602167c1d606b700eb1cd488f612c8f
1 /* LibTomPoly, Polynomial Basis Math -- Tom St Denis
2 *
3 * LibTomPoly is a public domain library that provides
4 * polynomial basis arithmetic support. It relies on
5 * LibTomMath for large integer support.
7 * This library is free for all purposes without any
8 * express guarantee that it works.
10 * Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
12 #include <tompoly.h>
13 #include <stdarg.h>
15 void pb_clear_multi(pb_poly *mp, ...)
17 pb_poly* next_mp = mp;
18 va_list args;
19 va_start(args, mp);
20 while (next_mp != NULL) {
21 pb_clear(next_mp);
22 next_mp = va_arg(args, pb_poly*);
24 va_end(args);