aboutsummaryrefslogtreecommitdiff
path: root/common/util.h
diff options
context:
space:
mode:
authorJulien Dessaux2019-08-01 17:52:46 +0200
committerJulien Dessaux2019-08-01 17:52:46 +0200
commitc151f2d4c85350b51fcf24ba83b426bf699269d6 (patch)
tree2b5fefac0f30504cc4c55ee09ac531e000b3fa95 /common/util.h
downloadrocket-cli-client-c151f2d4c85350b51fcf24ba83b426bf699269d6.tar.gz
rocket-cli-client-c151f2d4c85350b51fcf24ba83b426bf699269d6.tar.bz2
rocket-cli-client-c151f2d4c85350b51fcf24ba83b426bf699269d6.zip
Initial import
Diffstat (limited to '')
-rw-r--r--common/util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
new file mode 100644
index 0000000..464e7dc
--- /dev/null
+++ b/common/util.h
@@ -0,0 +1,13 @@
+#ifndef _UTIL_H_
+#define _UTIL_H_
+
+#include <features.h>
+#include <time.h>
+
+#ifndef UNUSED
+#define UNUSED __attribute__ ((__unused__))
+#endif
+
+void convert_iso8601(const char *time_string, int ts_len, struct tm *tm_data);
+
+#endif