diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-28 17:04:01 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-28 17:04:01 +0800 |
commit | 137ad27bed36437159ff9a29574a7ed840d4d96d (patch) | |
tree | 9041bf22119cde7928c4ce8598dea45ca518782e /product.c | |
parent | 63b109ca1c1c54319d164ddcfa5760aa66558ccd (diff) |
Product init function
Diffstat (limited to 'product.c')
-rw-r--r-- | product.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,6 +1,20 @@ #include <stdlib.h> #include "icclient/product.h" +void icclient_product_init(struct icclient_product *product) +{ + product->sku = NULL; + product->description = NULL; + product->comment = NULL; + product->thumb = NULL; + product->image = NULL; + product->price = .0; + product->prodgroup = NULL; + product->weight = .0; + product->author = NULL; + product->crosssell = NULL; +} + void icclient_product_free(struct icclient_product *product) { if (product->crosssell) |