Displaying 1 result from an estimated 1 matches for "c_bool".
Did you mean:
_bool
2025 Feb 03
1
boolean and logical types -draft
...ta type, but we do not.
C23 states that bool has 1 value bit and some padding bits (?6.2.6.2) so
it can be stored in char-sized storage (i.e. bytes) or multiples
thereof. And that _Bool is a alternative name for bool.
f) is complier-dependent: for interoperability with C or R, code should
use c_bool from iso_c_binding (Fortran 2003). Fortran compilers store
LOGICAL in compiler-dependent ways, and for a long time we got away with
assuming that was equivalent to int (so LOGICAL values could be passed
to and from with int* on the C/R side). But sometime around GCC 8 they
changed to int_leas...