aboutsummaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-10-24 18:26:40 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-10-24 18:26:40 +0200
commit4ba484be6ef6e1f759fdb6dbde056592143cbd14 (patch)
tree0dc9ec3162d6278fe28a726495d1986742c5a795 /utils.h
parent749a4b2eda0b3b2d7a796530bb64fdfb4b5f3df4 (diff)
time/timestamp refactoring
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 0f8e07d..513da66 100644
--- a/utils.h
+++ b/utils.h
@@ -3,6 +3,8 @@
#include <stdlib.h>
+#define TIMESTAMP_STRLEN 32
+
struct cmd_options {
/* server: private key
* client: server public key
@@ -31,4 +33,6 @@ char * prettify_bytes_with_units(char * const out, size_t out_size, unsigned lon
int hostname_to_address(char const * const host, char const * const port, struct addrinfo ** const result);
+void strftime_local(double time_in_secs, char * const out, size_t out_size);
+
#endif