initRAM
int initRAM(Log_Func logFunc, FILE* log, int traceLev,
char locale[8], char codepage[5], char error[256])
Variable | Function | Description |
---|---|---|
Log_Func logFunc |
Input | A function pointer to the CARMA logging function. This should be stored for use in other RAM functions. |
FILE* log |
Input | A file pointer to the CARMA log. This should be stored for use along with the logging function. |
int traceLev |
Input | The logging trace level to be used throughout the session. |
char locale[8] |
Input | Tells CARMA the locale of the strings that will be returned to the client. |
char codepage[5] |
Input | Tells CARMA the code page of the strings that will be returned to the client. |
char error[256] |
Output | If an error occurs, this should be filled with a description of the error. |
initRAM
must be called before all other RAM operations
occur. It should be used to initialize the SCM connection and to set
up any global variables used within the program. Among these global
variables should be ones used to store the three variables passed
into this function.