summaryrefslogtreecommitdiffstats
path: root/src/xlsx.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-04-09 19:19:22 -0300
committerandmarti1424 <andmarti@gmail.com>2017-04-09 19:19:22 -0300
commitf5959f99d723630c9efaaa30a1209316064f9158 (patch)
treed91369c0e31ad8eac4104a02b27608b968444386 /src/xlsx.c
parentcc90329962d76e1103aa43653993cf2f01c5038b (diff)
cleaned comments
Diffstat (limited to 'src/xlsx.c')
-rw-r--r--src/xlsx.c33
1 files changed, 20 insertions, 13 deletions
diff --git a/src/xlsx.c b/src/xlsx.c
index c88cfdd..dc11e45 100644
--- a/src/xlsx.c
+++ b/src/xlsx.c
@@ -17,16 +17,21 @@
#include <libxml/tree.h>
#include "xlsx.h"
-// ------------------------------------------------------------------
-// requires libzip-dev
-// requires libxml2-dev
-// for building: gcc -lzip -lxml2 -I/usr/include/libxml2 xlsx.c
-// ------------------------------------------------------------------
-
-
-// this functions takes the DOM of the sharedStrings file
-// and based on a position, it returns the according string
-// note that 0 is the first string.
+/*
+ * xlsx import requires:
+ * requires libzip-dev
+ * requires libxml2-dev
+ *
+ * xlsx export requires
+ * libxlsxwriter
+ */
+
+
+/*
+ * this functions takes the DOM of the sharedStrings file
+ * and based on a position, it returns the according string
+ * note that 0 is the first string.
+ */
char * get_xlsx_string(xmlDocPtr doc, int pos) {
xmlNode * cur_node = xmlDocGetRootElement(doc)->xmlChildrenNode;
xmlNode * father;
@@ -57,9 +62,11 @@ char * get_xlsx_string(xmlDocPtr doc, int pos) {
return result;
}
-// this functions takes the DOM of the styles file
-// and based on a position, it returns the according numFmtId
-// IMPORTANT: note that 0 is the first "xf".
+/*
+ * this functions takes the DOM of the styles file
+ * and based on a position, it returns the according numFmtId
+ * IMPORTANT: note that 0 is the first "xf".
+ */
char * get_xlsx_styles(xmlDocPtr doc_styles, int pos) {
// we go forward up to styles data
xmlNode * cur_node = xmlDocGetRootElement(doc_styles)->xmlChildrenNode;