Difference between revisions of "Truxton message get depot name"
Jump to navigation
Jump to search
m (Sam moved page Truxton message get depot filename to Truxton message get depot name: Standardized the API) |
|||
| Line 3: | Line 3: | ||
=Syntax= | =Syntax= | ||
<syntaxhighlight lang="C"> | <syntaxhighlight lang="C"> | ||
| − | void | + | void truxton_message_get_depot_name( uint64_t message_handle, char * destination_string, size_t max_size ); |
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 23: | Line 23: | ||
char filename[ 40 ]; | char filename[ 40 ]; | ||
| − | + | truxton_message_get_depot_name( message_handle, filename, sizeof(filename)); | |
printf( "Depot file is %s\n", filename); | printf( "Depot file is %s\n", filename); | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:31, 26 June 2020
This retrieves the name of the depot file holding the file's contents.
Syntax
void truxton_message_get_depot_name( uint64_t message_handle, char * destination_string, size_t max_size );
Parameters
message_handle
The handle to a message created by the truxton_message_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
int print_name(uint64_t message_handle)
{
char filename[ 40 ];
truxton_message_get_depot_name( message_handle, filename, sizeof(filename));
printf( "Depot file is %s\n", filename);
}