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

FreeBSD Manual Pages

  
 
  

home | help
doc::unibi_name_bool(3)		   unibilium	       doc::unibi_name_bool(3)

NAME
       unibi_name_bool,	unibi_name_num,	unibi_name_str,	unibi_short_name_bool,
       unibit_short_name_num, unibi_short_name_str - translate capability
       enums to	names

SYNOPSIS
	#include <unibilium.h>

	const char *unibi_name_bool(enum unibi_boolean b);
	const char *unibi_name_num(enum	unibi_numeric n);
	const char *unibi_name_str(enum	unibi_string s);

	const char *unibi_short_name_bool(enum unibi_boolean b);
	const char *unibi_short_name_num(enum unibi_numeric n);
	const char *unibi_short_name_str(enum unibi_string s);

DESCRIPTION
       These functions return the names	of capabilities	as strings. By default
       long names ("variable names") are returned; the "unibi_short_name_*"
       variants	use the	shorter	"capnames".

EXAMPLE
	#include <stdio.h>
	#include <unibilium.h>

	int main(void) {
	  printf("%s - %s\n", unibi_name_bool(unibi_has_status_line), unibi_short_name_bool(unibi_has_status_line));
	  /* Output:
	     has_status_line - hs
	  */
	}

SEE ALSO
       unibilium.h(3)

unibilium-2.0.0			  2019-08-11	       doc::unibi_name_bool(3)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=unibi_name_bool&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help