diff options
author | David Timber <mieabby@gmail.com> | 2020-09-28 17:46:33 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-09-28 17:46:33 +0930 |
commit | 5dbfcb1f66b681fbb6cdec8836efe2c2d84f957e (patch) | |
tree | ea0412b8e33ee991f83b3832f93852d7d4c5484e /src/util_rt.h | |
parent | 909e45f775fb5908ab7a4d68eabf9beb91e36ef2 (diff) |
The 80 column rule ...
* Remove prne_rnd_anum_str()
Diffstat (limited to 'src/util_rt.h')
-rw-r--r-- | src/util_rt.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/util_rt.h b/src/util_rt.h index f0e4ffe..8953915 100644 --- a/src/util_rt.h +++ b/src/util_rt.h @@ -39,7 +39,6 @@ bool prne_own_realloc ( bool prne_nstreq (const char *a, const char *b); size_t prne_nstrlen (const char *s); -void prne_rnd_anum_str (mbedtls_ctr_drbg_context *rnd, char *str, const size_t len); char *prne_strnchr (const char *p, const char c, const size_t n); size_t prne_str_shift_spaces (char *str, const size_t len); void prne_transstr (char *str, int(*trans_f)(int)); @@ -67,20 +66,32 @@ void prne_hex_tochar (const uint_fast8_t in, char *out, const bool upper); bool prne_uuid_fromstr (const char *str, uint8_t *out); void prne_uuid_tostr (const uint8_t *in, char *out); -struct timespec prne_add_timespec (const struct timespec a, const struct timespec b); -struct timespec prne_sub_timespec (const struct timespec a, const struct timespec b); +struct timespec prne_add_timespec ( + const struct timespec a, + const struct timespec b); +struct timespec prne_sub_timespec ( + const struct timespec a, + const struct timespec b); double prne_real_timespec (const struct timespec ts); struct timespec prne_ms_timespec (const long ms); int prne_cmp_timespec (const struct timespec a, const struct timespec b); -struct timespec prne_min_timespec (const struct timespec a, const struct timespec b); -struct timespec prne_max_timespec (const struct timespec a, const struct timespec b); +struct timespec prne_min_timespec ( + const struct timespec a, + const struct timespec b); +struct timespec prne_max_timespec ( + const struct timespec a, + const struct timespec b); struct timespec prne_gettime (const clockid_t cid); struct timeval prne_ts2tv (const struct timespec ts); struct timeval prne_ms_timeval (const long ms); 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); +bool prne_dec_base64_mem ( + const char *str, + const size_t str_len, + uint8_t **data, + size_t *size); // getrandom polyfill ssize_t prne_geturandom (void *buf, const size_t len); |