As an example, the following code segment will read the parameters for the element block with an ID of 10 and read the connectivity and element attributes arrays from an open exodus file :
int id, error,
exoid, num_el_in_blk, num_nod_per_el, num_attr,
*connect;
float *attrib;
\comment{read element block parameters}
id = 10;
&num_nod_per_elem, &num_attr);
\comment{read element connectivity}
connect = (int *) calloc(num_nod_per_el*num_el_in_blk,
sizeof(int));
\comment{read element block attributes}
attrib = (float *) calloc (num_attr * num_el_in_blk, sizeof(float));
\comment{Same result using non-deprecated functions}
&num_nod_per_elem, 0, 0, &num_attr);