Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

CFI_is_contiguous

C function prototype: Tests contiguity of an array.

int CFI_is_contiguous(const CFI_cdesc_t *dv);

Formal Parameters:

dv

The address of a C descriptor describing an array. The base_addr member of the C descriptor must not be a null pointer.

Result Value

The value of the result is 1 if the array described by dv is contiguous; otherwise, 0.

Since assumed-size and allocatable arrays are always contiguous, the result of CFI_is_contiguous on a C descriptor for such an array is 1.