<?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_jurisdiction_get_description</id>
	<title>Truxton jurisdiction get description - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_jurisdiction_get_description"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_jurisdiction_get_description&amp;action=history"/>
	<updated>2026-09-09T16:06: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_jurisdiction_get_description&amp;diff=4626&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This retrieves the description of the jurisdiction. This corresponds to the &lt;code&gt;[Description]&lt;/code&gt; column of the &lt;code&gt;[Jurisdiction]&lt;/code&gt; table.  =Syntax= &lt;source lang=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_jurisdiction_get_description&amp;diff=4626&amp;oldid=prev"/>
		<updated>2021-02-18T20:17:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This retrieves the description of the jurisdiction. This corresponds to the &amp;lt;code&amp;gt;[Description]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[Jurisdiction]&amp;lt;/code&amp;gt; table.  =Syntax= &amp;lt;source lang=...&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 description of the jurisdiction.&lt;br /&gt;
This corresponds to the &amp;lt;code&amp;gt;[Description]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[Jurisdiction]&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_jurisdiction_get_description( uint64_t jurisdiction_handle, char * destination_string, size_t maximum_size );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;jurisdiction_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle to the file type object.&lt;br /&gt;
This handle comes from calling &amp;lt;code&amp;gt;[[truxton_jurisdiction_create|truxton_jurisdiction_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 buffer where the description will go.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;maximum_size&amp;lt;/code&amp;gt;==&lt;br /&gt;
The size of the &amp;lt;code&amp;gt;destination_string&amp;lt;/code&amp;gt; buffer.&lt;br /&gt;
The maximum number of characters written to the buffer will be &amp;lt;code&amp;gt;maximum_size&amp;lt;/code&amp;gt; minus one to leave room for the [https://en.wikipedia.org/wiki/Null-terminated_string null terminator.]&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;12&amp;quot;&amp;gt;&lt;br /&gt;
void dump( uint64_t jurisdiction )&lt;br /&gt;
{&lt;br /&gt;
   char temporary_string[ 256 ];&lt;br /&gt;
&lt;br /&gt;
   uint64_t id= truxton_jurisdiction_get_id( jurisdiction );&lt;br /&gt;
&lt;br /&gt;
   printf( &amp;quot;ID: %&amp;quot; PRIu64 &amp;quot;\n&amp;quot;, id );&lt;br /&gt;
&lt;br /&gt;
   truxton_jurisdiction_get_name( jurisdiction, temporary_string, sizeof( temporary_string ) );&lt;br /&gt;
   printf( &amp;quot;Name: %s\n&amp;quot;, temporary_string );&lt;br /&gt;
&lt;br /&gt;
   truxton_jurisdiction_get_description( jurisdiction, temporary_string, sizeof( temporary_string ) );&lt;br /&gt;
   printf( &amp;quot;Description: %s\n&amp;quot;, temporary_string );&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>