EIF_add_numeric_array


Add a NUMERIC ARRAY variable to a VAR file.

Synopsis


EIF_add_numeric  (lu, iarray, ibase, varname, index,value)

Input Parameters


int lu,*iarray, *ibase,* num, index; char *varname; double value;

Output Parameters

none

Returns

Returns TRUE if there are no errors or otherwise FALSE.

Arguments

lu

Logic unit for the VAR file.
 

iarray

Buffer where to write the variables.
 

ibase

Displacement inside the buffer.
 

varname

Name of the variable.
 

index
 

Index of the array.

value
 

Value of the variable.

Include Files

EIF_lib.h, EIF_std.h

Example


#include <string.h> #include <stdio.h> #include "EIF_std.h" #include "EIF_lib.h" ... int           lu, ibase, index, iarray[1024]; char        varName[32]; double  value; ... strcpy( varName, “EDR_SETTINGS”); index = 1; value = 2.5; if( !EIF_add_numeric_array( lu, &iarray[0], &ibase,                                                                varName, index, value ) ) {             printf(“*** Error adding a NUMERIC ARRAY variable to VAR file ***\n”); } ...