Truxton get version

From truxwiki.com
Revision as of 17:42, 19 May 2020 by Sam (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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