Difference between revisions of "Truxton destroy"

From truxwiki.com
Jump to navigation Jump to search
 
Line 3: Line 3:
 
=Syntax=
 
=Syntax=
 
<source lang="C">
 
<source lang="C">
void truxton_destroy( uint64_t trutxon_handle );
+
void truxton_destroy( uint64_t truxton_handle );
 
</source>
 
</source>
  
 
=Parameters=
 
=Parameters=
 
==<code>truxton_handle</code>==
 
==<code>truxton_handle</code>==
 
 
The handle created by the [[truxton_create]] call.
 
The handle created by the [[truxton_create]] call.
  

Latest revision as of 16:51, 20 May 2021

Destroys an instance of the Truxton application object.

Syntax

void truxton_destroy( uint64_t truxton_handle );

Parameters

truxton_handle

The handle created by the truxton_create call.

Sample

void main()
{
    char version[256];

    truxton_start();

    uint64_t truxton = truxton_create();

    truxton_get_version( truxton, version, sizeof(version) );

    printf( "%s\n", version );

    truxton_destroy( truxton );

    truxton_stop();
}