arguments.c

changeset 30
d642fdb6745e
parent 20
43725438ac50
--- a/arguments.c	Thu Feb 02 16:55:51 2012 +0100
+++ b/arguments.c	Thu Feb 09 15:56:18 2012 +0100
@@ -27,3 +27,19 @@
   *reg |= mask;
   return ret;
 }
+
+bool checkParamOpt(int* paropt) {
+  bool ret = *paropt == 0;
+  *paropt = 1;
+  return ret;
+}
+
+void parseCSL(char* csl, string_list_t* list) {
+  if (csl != NULL) {
+    char* finder = strtok(csl, ",");
+    while (finder != NULL) {
+      add_string(list, finder);
+      finder = strtok(NULL, ",");
+    }
+  }
+}

mercurial