<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_subject_get_id</id>
	<title>Truxton subject get id - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_subject_get_id"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_subject_get_id&amp;action=history"/>
	<updated>2026-09-09T19:39:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_subject_get_id&amp;diff=4509&amp;oldid=prev</id>
		<title>Sam at 14:21, 15 February 2021</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_subject_get_id&amp;diff=4509&amp;oldid=prev"/>
		<updated>2021-02-15T14:21:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 14:21, 15 February 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    truxton_subject_get_name( subject_handle, temp_string, sizeof(temp_string) );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    truxton_subject_get_name( subject_handle, temp_string, sizeof(temp_string) );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    printf( Name: %s\n&amp;quot;, temp_string );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    printf( &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/ins&gt;Name: %s\n&amp;quot;, temp_string );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    truxton_subject_get_description( subject_handle, temp_string, sizeof(temp_string) );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    truxton_subject_get_description( subject_handle, temp_string, sizeof(temp_string) );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_subject_get_id&amp;diff=4495&amp;oldid=prev</id>
		<title>Sam at 10:14, 15 February 2021</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_subject_get_id&amp;diff=4495&amp;oldid=prev"/>
		<updated>2021-02-15T10:14:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:14, 15 February 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Syntax=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Syntax=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;truxton_suspect_get_id&lt;/del&gt;( uint64_t subject_handle, char * destination_string, size_t max_size );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;truxton_subject_get_id&lt;/ins&gt;( uint64_t subject_handle, char * destination_string, size_t max_size );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_subject_get_id&amp;diff=4490&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This retrieves the identifier of the subject. This corresponds to the &lt;code&gt;[ID]&lt;/code&gt; column of the &lt;code&gt;[Suspect]&lt;/code&gt; table.  =Syntax= &lt;source lang=&quot;C&quot;&gt; void truxton_su...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_subject_get_id&amp;diff=4490&amp;oldid=prev"/>
		<updated>2021-02-15T10:08:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This retrieves the identifier of the subject. This corresponds to the &amp;lt;code&amp;gt;[ID]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[Suspect]&amp;lt;/code&amp;gt; table.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; void truxton_su...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This retrieves the identifier of the subject.&lt;br /&gt;
This corresponds to the &amp;lt;code&amp;gt;[ID]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[Suspect]&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_suspect_get_id( uint64_t subject_handle, char * destination_string, size_t max_size );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;subject_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
This comes from calling &amp;lt;code&amp;gt;[[truxton_subject_create|truxton_subject_create()]]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;destination_string&amp;lt;/code&amp;gt;==&lt;br /&gt;
The string to be written to. &lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;max_size&amp;lt;/code&amp;gt;==&lt;br /&gt;
The maximum number of characters that can be written to &amp;lt;code&amp;gt;destination_string&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
void dump_subject( uint64_t subject_handle )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t integer_value = 0;&lt;br /&gt;
&lt;br /&gt;
   char temp_string[ 1024 ];&lt;br /&gt;
&lt;br /&gt;
   truxton_subject_get_id( subject_handle, temp_string, sizeof(temp_string) );&lt;br /&gt;
   printf( &amp;quot;Subject ID is %s\n&amp;quot;, temp_string );&lt;br /&gt;
&lt;br /&gt;
   truxton_subject_get_name( subject_handle, temp_string, sizeof(temp_string) );&lt;br /&gt;
   printf( Name: %s\n&amp;quot;, temp_string );&lt;br /&gt;
&lt;br /&gt;
   truxton_subject_get_description( subject_handle, temp_string, sizeof(temp_string) );&lt;br /&gt;
   printf( &amp;quot;Description: %s\n&amp;quot;, temp_string );&lt;br /&gt;
&lt;br /&gt;
   truxton_subject_get_custom( subject_handle, temp_string, sizeof(temp_string) );&lt;br /&gt;
   printf( &amp;quot;Custom: %s\n&amp;quot;, temp_string );&lt;br /&gt;
&lt;br /&gt;
   truxton_subject_get_picture( subject_handle, temp_string, sizeof(temp_string) );&lt;br /&gt;
   display_base64_encoded_png( temp_string );&lt;br /&gt;
&lt;br /&gt;
   integer_value = truxton_subject_get_birthday( subject_handle );&lt;br /&gt;
&lt;br /&gt;
   if ( integer_value == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;Birthday: Unknown\n&amp;quot; );&lt;br /&gt;
   }&lt;br /&gt;
   else&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;Birthday: %&amp;quot; PRIu64 &amp;quot;\n&amp;quot;, integer_value );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;PRIu64&amp;lt;/code&amp;gt; in the sample code above is a standard way of [https://en.wikipedia.org/wiki/C_data_types#Printf_and_scanf_format_specifiers formatting] a 64-bit unsigned integer in C.&lt;br /&gt;
Over the years, different compilers on different operating systems used different format specifiers for things, these &amp;lt;code&amp;gt;PRI&amp;lt;/code&amp;gt; macros, along with some tricky string concatenation the compilers perform for you, allow you to maintain a single code base without a bunch of macro magic.&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>