... | ... |
@@ -1,10 +1,13 @@ |
1 | 1 |
/* |
2 | 2 |
* parselib.h |
3 | 3 |
* |
4 |
- * Convenienct functions to parse config file lines. |
|
4 |
+ * Convenience functions for parsing config-file lines. |
|
5 |
+ * |
|
6 |
+ * Header file. |
|
5 | 7 |
* |
6 | 8 |
* History: |
7 |
- * 27/01/2014 Creation |
|
9 |
+ * 27/01/2014 Creation. |
|
10 |
+ * 14/03/2014 Add separators param to _unquotedstr(). |
|
8 | 11 |
* |
9 | 12 |
* Author: Dario Rodriguez dario@softhome.net |
10 | 13 |
* This file is licensed under the terms of the GNU LGPL v2+ |
... | ... |
@@ -16,7 +19,7 @@ |
16 | 19 |
char *field_int(char *ptr, int *value); |
17 | 20 |
char *field_long(char *ptr, long *value); |
18 | 21 |
char *field_quotedstr(char *ptr, char *str, long strsize); |
19 |
-char *field_unquotedstr(char *ptr, char *str, long strsize); |
|
22 |
+char *field_unquotedstr(char *ptr, char *str, long strsize, char *separators); |
|
20 | 23 |
char *field_hexint(char *ptr, int *value); |
21 | 24 |
|
22 | 25 |
#endif |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,22 @@ |
1 |
+/* |
|
2 |
+ * parselib.h |
|
3 |
+ * |
|
4 |
+ * Convenienct functions to parse config file lines. |
|
5 |
+ * |
|
6 |
+ * History: |
|
7 |
+ * 27/01/2014 Creation |
|
8 |
+ * |
|
9 |
+ * Author: Dario Rodriguez dario@softhome.net |
|
10 |
+ * This file is licensed under the terms of the GNU LGPL v2+ |
|
11 |
+ */ |
|
12 |
+ |
|
13 |
+#ifndef PARSELIB_H |
|
14 |
+#define PARSELIB_H |
|
15 |
+ |
|
16 |
+char *field_int(char *ptr, int *value); |
|
17 |
+char *field_long(char *ptr, long *value); |
|
18 |
+char *field_quotedstr(char *ptr, char *str, long strsize); |
|
19 |
+char *field_unquotedstr(char *ptr, char *str, long strsize); |
|
20 |
+char *field_hexint(char *ptr, int *value); |
|
21 |
+ |
|
22 |
+#endif |