Codebase list httping / upstream/2.5+git20200730.1.fa72809 utils.h
upstream/2.5+git20200730.1.fa72809

Tree @upstream/2.5+git20200730.1.fa72809 (Download .tar.gz)

utils.h @upstream/2.5+git20200730.1.fa72809

3bd5d0f
bc3680c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558af47
 
/* Released under AGPL v3 with exception for the OpenSSL library. See license.txt */

double get_ts(void);

void split_string(const char *in, const char *split, char ***list, int *list_n);
void free_splitted_string(char **list, int n);

void str_add(char **to, const char *what, ...);

#define GIGA 1000000000.0
#define MEGA 1000000.0
#define KILO 1000.0

char * format_value(double value, int digits_sig, int digits_nsig, char abbreviate);

#define min(x, y)	((x) < (y) ? (x) : (y))
#define max(x, y)	((x) > (y) ? (x) : (y))

void myusleep(useconds_t v);