Difference between revisions of "Truxton stop"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "Frees any resources used by Truxton. It should be the last call before exitting your program. =Syntax= <syntaxhighlight lang="C"> void truxton_stop( void ); </syntaxhighlight...")
 
 
Line 3: Line 3:
  
 
=Syntax=
 
=Syntax=
<syntaxhighlight lang="C">
+
<source lang="C">
 
void truxton_stop( void );
 
void truxton_stop( void );
</syntaxhighlight>
+
</source>
  
 
=Sample=
 
=Sample=
 
+
<source lang="C" highlight="15">
<syntaxhighlight lang="C" highlight="15">
 
 
void main()
 
void main()
 
{
 
{
Line 18: Line 17:
 
     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();
 
}
 
}
</syntaxhighlight>
+
</source>

Latest revision as of 11:02, 10 February 2021

Frees any resources used by Truxton. It should be the last call before exitting your program.

Syntax

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