<?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_options_exists</id>
	<title>Truxton options exists - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_options_exists"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_options_exists&amp;action=history"/>
	<updated>2026-09-09T16:57:14Z</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_options_exists&amp;diff=4689&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;Determines if a value exists in the options.  =Syntax= &lt;source lang=&quot;C&quot;&gt; int64_t truxton_options_exists( uint64_t options_handle, char const * name ); &lt;/source&gt;  =Parameters=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_options_exists&amp;diff=4689&amp;oldid=prev"/>
		<updated>2021-03-05T14:44:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Determines if a value exists in the options.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; int64_t truxton_options_exists( uint64_t options_handle, char const * name ); &amp;lt;/source&amp;gt;  =Parameters=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Determines if a value exists in the options.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
int64_t truxton_options_exists( uint64_t options_handle, char const * name );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;options_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle to the options object created by calling the &amp;lt;code&amp;gt;[[truxton_options_create]]&amp;lt;/code&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;==&lt;br /&gt;
The name of the option to test for.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
Zero if the value is no where to be found in the options.&lt;br /&gt;
One is returned if the named option was found.&lt;br /&gt;
&lt;br /&gt;
=Remarks=&lt;br /&gt;
It is not possible for &amp;lt;code&amp;gt;[[truxton_option_get_boolean|truxton_options_get_boolean]]()&amp;lt;/code&amp;gt; to tell you if a false value was specified by the user or the default value of false was used.&lt;br /&gt;
This method will tell you if the named setting exists anywhere in Truxton.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;5&amp;quot;&amp;gt;&lt;br /&gt;
void process_free( void )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t options = truxton_options_create();&lt;br /&gt;
&lt;br /&gt;
   if ( truxton_options_exists( &amp;quot;pfree&amp;quot; ) == 1 )&lt;br /&gt;
   {&lt;br /&gt;
      if ( truxton_options_get_boolean( &amp;quot;pfree&amp;quot; ) == 1 )&lt;br /&gt;
      {&lt;br /&gt;
         printf( &amp;quot;Yes, we will process free space\n&amp;quot; );&lt;br /&gt;
      }&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         printf( &amp;quot;No, we will not process free space\n&amp;quot; );&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
   else&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;The user did not specify the pfree option, we will assume they do not want to process free space.\n&amp;quot; );&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_options_destroy( options );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>