diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-10-24 18:26:40 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-10-24 18:26:40 +0200 |
commit | 4ba484be6ef6e1f759fdb6dbde056592143cbd14 (patch) | |
tree | 0dc9ec3162d6278fe28a726495d1986742c5a795 /utils.h | |
parent | 749a4b2eda0b3b2d7a796530bb64fdfb4b5f3df4 (diff) |
time/timestamp refactoring
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |