TA-Lib : Technical Analysis Library

NAME
    TA_Shutdown - C Function


SYNOPSIS
    #include "ta_libc.h"

    TA_RetCode TA_Shutdown( void );

DESCRIPTION

Free internal resources used by TA-Lib. This function will typically be called before your application exit.

TA_Shutdown shall be called only if TA_Initialize return code was TA_SUCCESS.

Multithread user: Make sure that all thread are not using anymore TA-Lib before calling TA_Shutdown.

RETURN VALUE

TA_SUCCESS Operation is successful
TA_BAD_PARAM One of the parameter has an unexpected valued.
TA_BAD_OBJECT Memory corruption or a bad pointer was provided.
TA_MEM_LEAK Some objects were NOT freed prior to the shutdown.
TA_ALLOC_ERR Memory corruption detected
TA_UNKNOWN_ERR Operation failed for unknown/unexpected reason

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

TA_Initialize


EXAMPLE

#include <stdio.h>
#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. */

      retCode = TA_Shutdown();
      if( retCode != TA_SUCCESS )
         printf( "Library shutdown failed (%d)\n", retCode );
   }

   return 0;
}