ISO_C_BINDING

The intrinsic module provides a set of named constants and procedures that can assist you in programming with mixed languages.

Use the intrinsic module with:

USE, INTRINSIC::ISO_C_BINDING

There are two groups of named constants included in this intrinsic module:

These constants include:

Named Constant

C Definition

Value

C_NULL_CHAR

null character

'\0'

C_ALERT

alert

'\a'

C_BACKSPACE

backspace

'\b'

C_FORM_FEED

form feed

'\f'

C_NEW_LINE

new line

'\n'

C_CARRIAGE_RETURN

carriage return

'\r'

C_HORIZONTAL_TAB

horizontal tab

'\t'

C_VERTICAL_TAB

vertical tab

'\v'

The procedures included in ISO_C_BINDING are all generic, not specific. Aside from C_F_POINTER and C_F_STRPOINTER, all of the procedures are pure. They include:

Additionally, ISO_C_BINDING includes the following derived types to interoperate with C pointers: