|
| NAME DESCRIPTION This function MUST be called prior to any other function provided by the TA-LIB. On success and once TA-LIB is not needed anymore, TA_Shutdown must be called. This will take care to de-allocate all TA-LIB related resources. After TA_Initialize, all other functions (except TA_Shutdown) are fully multithread safe. RETURN VALUE
For other error code, or to match a number to an error description, check the TA_RetCode enumeration in "ta-lib/c/include/ta_common.h" SEE ALSO
#include "ta_libc.h"
int main( void )
{
TA_RetCode retCode;
retCode = TA_Initialize( );
if( retCode != TA_SUCCESS )
printf( "Cannot initialize TA-Lib (%d)!\n", retCode );
else
{
printf( "TA-Lib correctly initialized.\n" );
/* ... other TA-Lib functions can be used here. */
TA_Shutdown();
}
return 0;
}
|
|