Truxton communication get subject

From truxwiki.com
Jump to navigation Jump to search

Retrieves the subject of the message. This corresponds to the [Text] column of the [MessageSubject] table.

Syntax

void truxton_communication_get_subject( uint64_t communication_handle, char * destination_string, size_t max_size );

Parameters

communication_handle

The handle created by the truxton_communication_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 print_subject( uint64_t communication_handle )
{
   char subject[512];

   truxton_communication_get_subject( child_file, subject, sizeof(subject) );
   printf( "%s\n", subject);
}