Truxton options destroy

From truxwiki.com
Jump to navigation Jump to search

This destroys an options object.

Syntax

void truxton_options_destroy( uint64_t options_handle );

Parameters

options_handle

The handle to the options object created by calling the truxton_options_create function.

Return value

A handle to an options object.

Sample

void process_free(void)
{
   uint64_t options = truxton_options_create();

   if ( truxton_options_get_boolean( "pfree" ) == 1 )
   {
      printf( "Yes, we will process free space\n" );
   }
   else
   {
      printf( "No, we will not process free space\n" );
   }

   truxton_options_destroy( options );
}