diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-05 18:06:58 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-05 18:06:58 +0800 |
commit | c2c89d376b0d80299ad0fe8228ecef4279557160 (patch) | |
tree | bd75d3c9fa7a70393c2e74d9c11ac6536f511951 /ord.c | |
parent | 89b7bef4c433bb42588eeec6e6f0d3d1c2a19b78 (diff) |
Start working on ord.c
Diffstat (limited to 'ord.c')
-rw-r--r-- | ord.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#include <stdlib.h> +#include <stdbool.h> +#include "icclient/client.h" +#include "icclient/ord.h" + +void icclient_ord_free(struct icclient_ord_order *order) +{ + for (size_t i = 0; i < order->nitems; i++) + icclient_freeproduct(order->items[i]->product); +} |