My Project
|
Go to the source code of this file.
Functions | |
int | interfile_read (char headerName[256], char searchWord[256], char returnValue[256], char errorMessage[300]) |
int interfile_read | ( | char | headerName[256], |
char | searchWord[256], | ||
char | returnValue[256], | ||
char | errorMessage[300] | ||
) |
The function searches the keyword in the header and passes the value belonging to that value back to the main program. The name of the header (string 'headerName') and the requested keyword (string 'searchWord') are passed to the function. It passes back the value of the keyword (string 'returnValue') and possibly an error message or warning (string 'errorMessage'). So the values are passed back as strings. The interpretation (conversion to integer, float, time etc) is up to the programmer.
The interfile header has to comply to the following rules:
headerName | header file name |
searchWord | keyword to look for |
returnValue | value for keyword in header |
errorMessage | error message/warnings. In case there is a error message it will be returnd as string in the variable 'errmsg'. |
Definition at line 70 of file interfile.c.