"Fossies" - the Fresh Open Source Software Archive

Member "HTTPing-2.9/utils.h" (29 Oct 2022, 556 Bytes) of package /linux/www/HTTPing-2.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "utils.h" see the Fossies "Dox" file reference documentation.

    1 /* Released under AGPL v3 with exception for the OpenSSL library. See license.txt */
    2 
    3 double get_ts(void);
    4 
    5 void split_string(const char *in, const char *split, char ***list, int *list_n);
    6 void free_splitted_string(char **list, int n);
    7 
    8 void str_add(char **to, const char *what, ...);
    9 
   10 #define GIGA 1000000000.0
   11 #define MEGA 1000000.0
   12 #define KILO 1000.0
   13 
   14 char * format_value(double value, int digits_sig, int digits_nsig, char abbreviate);
   15 
   16 #define min(x, y)   ((x) < (y) ? (x) : (y))
   17 #define max(x, y)   ((x) > (y) ? (x) : (y))
   18 
   19 void myusleep(useconds_t v);