aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-01-03 03:08:19 +1100
committerDavid Timber <mieabby@gmail.com>2020-01-03 03:08:19 +1100
commit9a2a07861e3919ea2d8f3b4f36e2d51d7748ba9d (patch)
tree4cb2cea83cc440e67abef03e70b089369b0fecc6 /src/util.h
parented809a51fdd1c313cd256301ef6f7211e8394cb1 (diff)
checkpoint
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/util.h b/src/util.h
deleted file mode 100644
index a5e3070..0000000
--- a/src/util.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#pragma once
-#include "rnd.h"
-
-#include <stddef.h>
-#include <time.h>
-
-
-#define prne_op_spaceship(a,b) (a==b?0:a<b?-1:1)
-
-
-#if 0
-bool prne_strendsw (const char *str, const char *w) {
- const size_t len_str = strlen(str);
- const size_t len_w = strlen(w);
-
- if (len_str < len_w) {
- return false;
- }
- return strcmp(str + (len_str - len_w), w) == 0;
-}
-#endif
-
-void prne_succeed_or_die (const int ret);
-void prne_empty_func ();
-
-void prne_rnd_alphanumeric_str (prne_rnd_engine_t *rnd_engine, char *str, const size_t len);
-size_t prne_str_shift_spaces (char *str, const size_t len);
-
-struct timespec prne_sub_timespec (const struct timespec *a, const struct timespec *b);
-double prne_real_timespec (const struct timespec *ts);
-int prne_cmp_timespec (const struct timespec *a, const struct timespec *b);
-
-char *prne_enc_base64_mem (const uint8_t *data, const size_t size);
-bool prne_dec_base64_mem (const char *str, const size_t str_len, uint8_t **data, size_t *size);