diff options
Diffstat (limited to 'src/include/taler_amount_lib.h')
-rw-r--r-- | src/include/taler_amount_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/taler_amount_lib.h b/src/include/taler_amount_lib.h index a1f6c7d35..c1f42e473 100644 --- a/src/include/taler_amount_lib.h +++ b/src/include/taler_amount_lib.h | |||
@@ -161,6 +161,17 @@ TALER_amount_set_zero (const char *cur, | |||
161 | 161 | ||
162 | 162 | ||
163 | /** | 163 | /** |
164 | * Test if the given @a amount is zero. | ||
165 | * | ||
166 | * @param amount amount to compare to zero | ||
167 | * @return true if the amount is zero, | ||
168 | * false if it is non-zero or invalid | ||
169 | */ | ||
170 | bool | ||
171 | TALER_amount_is_zero (const struct TALER_Amount *amount); | ||
172 | |||
173 | |||
174 | /** | ||
164 | * Test if the given amount is valid. | 175 | * Test if the given amount is valid. |
165 | * | 176 | * |
166 | * @param amount amount to check | 177 | * @param amount amount to check |