ISO_C_BINDING#
Standard:
Fortran 2003 and later, GNU extensions
The following intrinsic procedures are provided by the module; their definition can be found in the section Intrinsic Procedures of this manual.
C_ASSOCIATED
C_F_POINTER
C_F_PROCPOINTER
C_FUNLOCC_LOC
C_SIZEOF
The ISO_C_BINDING
module provides the following named constants of
type default integer, which can be used as KIND type parameters.
In addition to the integer named constants required by the Fortran 2003
standard and C_PTRDIFF_T
of TS 29113, GNU Fortran provides as an
extension named constants for the 128-bit integer types supported by the
C compiler: C_INT128_T, C_INT_LEAST128_T, C_INT_FAST128_T
.
Furthermore, if _Float128
is supported in C, the named constants
C_FLOAT128
and C_FLOAT128_COMPLEX
are defined.
Fortran Type |
Named constant |
C type |
Extension |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext. |
|
|
|
|
|
|
|
|
|
|
|
TS 29113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext. |
|
|
|
|
|
|
|
Additionally, the following parameters of type CHARACTER(KIND=C_CHAR)
are defined.
Name |
C definition |
Value |
---|---|---|
|
null character |
|
|
alert |
|
|
backspace |
|
|
form feed |
|
|
new line |
|
|
carriage return |
|
|
horizontal tab |
|
|
vertical tab |
|
Moreover, the following two named constants are defined:
Name |
Type |
---|---|
|
|
|
|
Both are equivalent to the value NULL
in C.