<?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_group_get_is_default</id>
	<title>Truxton group get is default - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_group_get_is_default"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_group_get_is_default&amp;action=history"/>
	<updated>2026-09-09T18:43:13Z</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_group_get_is_default&amp;diff=8336&amp;oldid=prev</id>
		<title>Sam at 20:57, 13 April 2024</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_group_get_is_default&amp;diff=8336&amp;oldid=prev"/>
		<updated>2024-04-13T20:57:52Z</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 20:57, 13 April 2024&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-l43&quot; &gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&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;}&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;}&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 colspan=&quot;2&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&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;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&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;/ins&gt;&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_group_get_is_default&amp;diff=8326&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This gets whether this is the default group for this investigation.  =Syntax= &lt;source lang=&quot;C&quot;&gt; uint64_t truxton_group_get_is_default( uint64_t group_handle ); &lt;/source&gt;  =Par...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_group_get_is_default&amp;diff=8326&amp;oldid=prev"/>
		<updated>2024-04-13T14:48:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This gets whether this is the default group for this investigation.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; uint64_t truxton_group_get_is_default( uint64_t group_handle ); &amp;lt;/source&amp;gt;  =Par...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This gets whether this is the default group for this investigation.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
uint64_t truxton_group_get_is_default( uint64_t group_handle );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;group_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle created by &amp;lt;code&amp;gt;[[truxton_group_create]]()&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;[[truxton_investigation_create_group]]()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
A non zero value if this is the default group for the investigation, zero if it is not.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;16&amp;quot;&amp;gt;&lt;br /&gt;
void create_my_things(uint64_t investigation_handle)&lt;br /&gt;
{&lt;br /&gt;
    if (investigation_handle == 0)&lt;br /&gt;
    {&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    uint64_t truxton_handle = truxton_investigation_get_truxton( investigation_handle );&lt;br /&gt;
    uint64_t group_handle = truxton_group_create( truxton_handle );&lt;br /&gt;
 &lt;br /&gt;
    truxton_group_set_id( group_handle, &amp;quot;47726F75-7020-5361-6D70-6C65636F6465&amp;quot; );&lt;br /&gt;
    truxton_group_set_name( group_handle, &amp;quot;My Things&amp;quot; );&lt;br /&gt;
    truxton_group_set_description( group_handle, &amp;quot;These are my things&amp;quot; );&lt;br /&gt;
    truxton_group_set_is_default( group_handle, 1 );&lt;br /&gt;
    truxton_group_set_type( group_handle, GROUP_TYPE_USER );&lt;br /&gt;
    printf( &amp;quot;Default: %&amp;quot; PRIu64 &amp;quot;\n&amp;quot;, truxton_group_get_is_default( group_handle ) );&lt;br /&gt;
&lt;br /&gt;
    if ( truxton_group_save( group_handle ) != 0 )&lt;br /&gt;
    {&lt;br /&gt;
        char guid[MINIMUM_GUID_STRING_BUFFER_SIZE + 5];&lt;br /&gt;
&lt;br /&gt;
        truxton_group_get_id( group_handle, guid, sizeof(guid) );&lt;br /&gt;
        truxton_investigation_set_active_group_id( investigation_handle, guid );&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    truxton_group_destroy( group_handle );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>