diff options
author | David Timber <david@lyset.snart.me> | 2019-12-31 02:52:35 +1100 |
---|---|---|
committer | David Timber <david@lyset.snart.me> | 2019-12-31 02:52:35 +1100 |
commit | 85d78af0cd8b809abc28491c46c648a242053044 (patch) | |
tree | 3205ee7fce91644b08b61dac624fc9cab448e6a1 /src/proone_util.h | |
parent | f765952dc8b77ad36e4f624086441d290e82bf66 (diff) |
checkpoint
Diffstat (limited to 'src/proone_util.h')
-rw-r--r-- | src/proone_util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/proone_util.h b/src/proone_util.h index 5e3e9c2..730ed3c 100644 --- a/src/proone_util.h +++ b/src/proone_util.h @@ -2,6 +2,10 @@ #include "proone_rnd.h" #include <stddef.h> +#include <time.h> + + +#define proone_op_spaceship(a,b) (a==b?0:a<b?-1:1) #if 0 @@ -16,4 +20,11 @@ bool proone_strendsw (const char *str, const char *w) { } #endif +void proone_succeed_or_die (const int ret); + void proone_rnd_alphanumeric_str (proone_rnd_engine_t *rnd_engine, char *str, const size_t len); +void proone_empty_func (); + +struct timespec proone_sub_timespec (const struct timespec *a, const struct timespec *b); +double proone_real_timespec (const struct timespec *ts); +int proone_cmp_timespec (const struct timespec *a, const struct timespec *b); |