Check the validity of the variable file and read the initial information.
Synopsis
int EIF_chek_magic (int lu, int *iarray, int *version, int *ibase, int *num (lu, iarray, ibase );
Input Parameters
int lu;
Output Parameters
int *iarray, *version, *ibase, *num ;
Returns
It returns TRUE if there are no errors other FALSE is returned.
Arguments
lu |
Logic
unit for the VAR file. |
iarray |
Buffer
to contain returned info. |
version |
The
version of VAR file. |
ibase |
Displacement
inside the buffer. |
num |
Number of integer in the first block. |
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, version, ibase, num, iarray[1024]; ... if( EIF_chek_magic( lu, &iarray[0], &version, &ibase, &num ) ) { // Do something with it } ......
Example
EIF_open_var,
EIF_close_read_var
,
EIF_close_write_var, VAR
files sample