Difference between revisions of "Truxton create"
Jump to navigation
Jump to search
(Created page with "Creates an instance of the Truxton application object. =Syntax= <syntaxhighlight lang="C"> uint64_t truxton_create( void ); </syntaxhighlight> =Return value= A non-zero valu...") |
|||
| Line 2: | Line 2: | ||
=Syntax= | =Syntax= | ||
| − | < | + | <source lang="C"> |
uint64_t truxton_create( void ); | uint64_t truxton_create( void ); | ||
| − | </ | + | </source> |
=Return value= | =Return value= | ||
| Line 10: | Line 10: | ||
=Sample= | =Sample= | ||
| − | + | <source lang="C" highlight="7"> | |
| − | < | ||
void main() | void main() | ||
{ | { | ||
| Line 20: | Line 19: | ||
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 11:01, 10 February 2021
Creates an instance of the Truxton application object.
Syntax
uint64_t truxton_create( void );
Return value
A non-zero value on success, zero on failure.
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();
}