Difference between revisions of "Truxton get version"
Jump to navigation
Jump to search
(Created page with "Retrieves the version of the Truxton application object. =Syntax= <syntaxhighlight lang="C"> void truxton_get_version( uint64_t trutxon_handle, char * destination_string, siz...") |
|||
| Line 2: | Line 2: | ||
=Syntax= | =Syntax= | ||
| − | < | + | <source lang="C"> |
void truxton_get_version( uint64_t trutxon_handle, char * destination_string, size_t max_size ); | void truxton_get_version( uint64_t trutxon_handle, char * destination_string, size_t max_size ); | ||
| − | </ | + | </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. | ||
==<code>destination_string</code>== | ==<code>destination_string</code>== | ||
| − | |||
The string to be written to. | The string to be written to. | ||
| Line 19: | Line 17: | ||
=Sample= | =Sample= | ||
| − | + | <source lang="C" highlight="9"> | |
| − | < | ||
void main() | void main() | ||
{ | { | ||
| Line 37: | Line 34: | ||
truxton_stop(); | truxton_stop(); | ||
} | } | ||
| − | </ | + | </source> |
Revision as of 09:01, 17 January 2021
Retrieves the version of the Truxton application object.
Syntax
void truxton_get_version( uint64_t trutxon_handle, char * destination_string, size_t max_size );
Parameters
truxton_handle
The handle created by the truxton_create call.
destination_string
The string to be written to.
max_size
The maximum number of characters that can be written to destination_string
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();
}