Difference between revisions of "Truxton destroy"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "Destroys an instance of the Truxton application object. =Syntax= <syntaxhighlight lang="C"> void truxton_destroy( uint64_t trutxon_handle ); </syntaxhighlight> =Parameters=...")
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
=Syntax=
 
=Syntax=
<syntaxhighlight lang="C">
+
<source lang="C">
void truxton_destroy( uint64_t trutxon_handle );
+
void truxton_destroy( uint64_t truxton_handle );
</syntaxhighlight>
+
</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.
  
 
=Sample=
 
=Sample=
 
+
<source lang="C" highlight="13">
<syntaxhighlight lang="C" highlight="13">
 
 
void main()
 
void main()
 
{
 
{
Line 22: Line 20:
 
     uint64_t truxton = truxton_create();
 
     uint64_t truxton = truxton_create();
  
     truxton_get_version(truxton, version, sizeof(version));
+
     truxton_get_version( truxton, version, sizeof(version) );
  
     printf("%s\n", version);
+
     printf( "%s\n", version );
  
     truxton_destroy(truxton);
+
     truxton_destroy( truxton );
  
 
     truxton_stop();
 
     truxton_stop();
 
}
 
}
</syntaxhighlight>
+
</source>

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();
}