diff options
author | David Timber <mieabby@gmail.com> | 2020-01-01 08:47:51 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-01-01 08:47:51 +1100 |
commit | 6e456edb2757cf9d28d306afb836aa16780fb912 (patch) | |
tree | 2744c874583f03d70ef2aaeb405c74fb5b65ff75 /src/proone_util.h | |
parent | 85d78af0cd8b809abc28491c46c648a242053044 (diff) |
checkpoint
Diffstat (limited to 'src/proone_util.h')
-rw-r--r-- | src/proone_util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/proone_util.h b/src/proone_util.h index 730ed3c..605f2a8 100644 --- a/src/proone_util.h +++ b/src/proone_util.h @@ -21,10 +21,14 @@ bool proone_strendsw (const char *str, const char *w) { #endif void proone_succeed_or_die (const int ret); +void proone_empty_func (); void proone_rnd_alphanumeric_str (proone_rnd_engine_t *rnd_engine, char *str, const size_t len); -void proone_empty_func (); +size_t proone_str_shift_spaces (char *str, const size_t len); 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); + +char *proone_enc_base64_mem (const uint8_t *data, const size_t size); +bool proone_dec_base64_mem (const char *str, const size_t str_len, uint8_t **data, size_t *size); |