FFSTSetConfiguration - Example Code

The following example will instruct FFST to stop wrapping dumps. The rest of the parameters are left to their earlier values.

  #define INCL_FFST
  #include <unichar.h>
  #include <os2.h>
  APIRET rc;

  CONFIGPARMS  FFSTConfig;
  PCONFIGPARMS  pFFSTConfig  *FFSTConfig;

  FFSTConfig.dump_file_wrap = FFST_DUMP_WRAP_OFF; /* Set dump wrap to off*/
  /* set rest of the parameters to indicate no change */

  FFSTConfig.dump_file_directory_size = FFST_DUMP_FILE_DIRECTORY_SIZE_NO_CHANGE;
  FFSTConfig.keep_dup_dump = FFST_KEEP_DUP_DUMP_NO_CHANGE;
  FFSTConfig.dump_file_directory_length = FFST_DUMP_FILE_DIERCTORY_LENGTH_NO_CHANGE;
  FFSTConfig.no_of_disabled_products = FFST_NO_OF_PROBE_DISABLED_PRODUCTS_NO_CHANGE;
  FFSTConfig.dump_file_directory = NULL;
  FFSTConfig.PProductData = NULL;

  rc = FFSTSetConfiguration(  pFFSTConfig);
  if (rc |= 0)                                       /* If Problem   */
             {                                       /* reason       */
             printf("FFSTConfigure error: return code = %d",rc);
             return;
             }


[Back: FFSTSetConfiguration - Related Functions]
[Next: FFSTSetConfiguration - Topics]