Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
wofi-utils(3)		   Library Functions Manual		 wofi-utils(3)

NAME
       wofi - Utility functions	and documentation

DESCRIPTION
       The  functions  documented here are general utility functions. They are
       defined in utils.h.

UTILITY	FUNCTIONS
       The following functions are general convenience functions.

       time_t utils_get_time_millis(void)
	      Returns the current unix time in milliseconds.

       void utils_sleep_millis(time_t millis)
	      Sleeps for the specified amount of time.

	      time_t millis - The time to sleep	for in milliseconds.

       char* utils_concat(size_t arg_count, ...)
	      Concatenates strings together. The returned result is newly  al-
	      located and must be freed	by the caller when finished using it.

	      size_t arg_count - The number of arguments provided

	      varargs -	The list of strings to be concatenated.

       size_t utils_min(size_t n1, size_t n2)
	      Returns the smaller of the two inputs.

	      size_t n1	- The first number.

	      size_t n2	- The second number.

       size_t utils_min3(size_t	n1, size_t n2, size_t n3)
	      Returns the smallest of the three	inputs.

	      size_t n1	- The first number.

	      size_t n2	- The second number.

	      size_t n3	- The third number.

       size_t utils_distance(const char* haystack, const char* needle)
	      Computes the Levenshtein distance	between	the two	inputs.

	      const char* haystack - The string	to search in.

	      const char* needle - The string to search	for.

								 wofi-utils(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=wofi-utils&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help