Truxton start

From truxwiki.com
Revision as of 17:38, 19 May 2020 by Sam (talk | contribs) (Created page with "Initializes the Truxton library. It should be called before any other method. =Syntax= <syntaxhighlight lang="C"> void truxton_start( void ); </syntaxhighlight> =Sample= <s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Initializes the Truxton library. It should be called before any other method.

Syntax

void truxton_start( void );

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