Difference between revisions of "Truxton destroy"
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= | ||
| − | < | + | <source lang="C"> |
| − | void truxton_destroy( uint64_t | + | void truxton_destroy( uint64_t truxton_handle ); |
| − | </ | + | </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"> | |
| − | < | ||
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(); | ||
} | } | ||
| − | </ | + | </source> |
Latest revision as of 16:51, 20 May 2021
Destroys an instance of the Truxton application object.
Contents
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();
}