structs_type_boolean_char,
structs_type_boolean_int,
structs_type_boolean_char_01,
structs_type_boolean_int_01, —
structs types for boolean values
PDEL Library (libpdel, -lpdel)
#include
<sys/types.h>
#include
<pdel/structs/structs.h>
#include
<pdel/structs/type/boolean.h>
extern const struct structs_type
structs_type_boolean_char;
extern const struct structs_type
structs_type_boolean_char_01;
extern const struct structs_type
structs_type_boolean_int;
extern const struct structs_type
structs_type_boolean_int_01;
These are
structs(3)
types for boolean values.
The types with char in the name describe
boolean values stored in variables having type char
or u_char. The types with int
in the name describe boolean values stored in variables having type
int or u_int.
With structs_type_boolean_char and
structs_type_boolean_int the ASCII form is
"True" or "False". With
structs_type_boolean_char_01 and
structs_type_boolean_int_01 the ASCII form is
"1" or "0".
The PDEL library was developed at Packet Design, LLC.
http://www.packetdesign.com/
Archie Cobbs
⟨archie@freebsd.org⟩