EIF_get_string_array


Access the Variable file for reading a STRING ARRAY variable.

Synopsis


EIF_get_string_array  ( lu, iarray, ibase, num, varname, index, value)

Input Parameters


int lu,*iarray, *ibase,* num;

Output Parameters


char *varname,  *value; int  *index;

Returns

Returns TRUE if there are no errors or otherwise FALSE.

Arguments

lu

Logic unit for the VAR file.
 

iarray

Buffer where to read the variables.
 

ibase

Displacement inside the buffer.
 

num

Number of integer in the block.
 

varname

Name of the variable.
 

index

Index of the array
 

value
 

Null-terminated 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, num, index, iarray[1024]; char     varName[32], value[256]; ... if( EIF_get_string_array( lu, &iarray[0], &ibase, &num,                                           varName, &index, value) ) {                       // Do something with it } ...

Related Routines

EIF_open_var, EIF_close_read_var , EIF_close_write_var, VAR files sample