The following functions are general convenience functions.
time_tutils_get_time_millis(void)
Returns the current unix time in milliseconds.
voidutils_sleep_millis(time_tmillis)
Sleeps for the specified amount of time.
time_tmillis - The time to sleep for in milliseconds.
char*utils_concat(size_targ_count,...)
Concatenates strings together. The returned result is newly allocated and must be freed by the
caller when finished using it.
size_targ_count - The number of arguments provided
varargs - The list of strings to be concatenated.
size_tutils_min(size_tn1,size_tn2)
Returns the smaller of the two inputs.
size_tn1 - The first number.
size_tn2 - The second number.
size_tutils_min3(size_tn1,size_tn2,size_tn3)
Returns the smallest of the three inputs.
size_tn1 - The first number.
size_tn2 - The second number.
size_tn3 - The third number.
size_tutils_distance(constchar*haystack,constchar*needle)
Computes the Levenshtein distance between the two inputs.
constchar*haystack - The string to search in.
constchar*needle - The string to search for.
wofi-utils(3)