summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ord.c b/ord.c
index c1c2d4c..f59a4b9 100644
--- a/ord.c
+++ b/ord.c
@@ -3,6 +3,14 @@
#include "icclient/product.h"
#include "icclient/ord.h"
+void icclient_ord_init(struct icclient_ord_order *order)
+{
+ order->subtotal = .0;
+ order->shipping = .0;
+ order->subtotal = .0;
+ order->nitems = 0;
+}
+
void icclient_ord_free(struct icclient_ord_order *order)
{
for (size_t i = 0; i < order->nitems; i++)