diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-09-01 11:11:41 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-09-01 11:11:41 +0200 |
commit | bf2ce9853e640384106f4dd7c242ea1e5e440871 (patch) | |
tree | 51f5feae3e85ae11a89d77f32c499bba198b447e /src/include | |
parent | 896bb8f074d6b6e091ee79de93b8bec118caa3ca (diff) | |
download | exchange-bf2ce9853e640384106f4dd7c242ea1e5e440871.tar.xz |
add long-time overdue convenience function
Diffstat (limited to 'src/include')
-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, /** + * Test if the given @a amount is zero. + * + * @param amount amount to compare to zero + * @return true if the amount is zero, + * false if it is non-zero or invalid + */ +bool +TALER_amount_is_zero (const struct TALER_Amount *amount); + + +/** * Test if the given amount is valid. * * @param amount amount to check |