<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_TrimToNull</id>
		<title>Core Function TrimToNull - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_TrimToNull"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_TrimToNull&amp;action=history"/>
		<updated>2026-04-11T20:22:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_TrimToNull&amp;diff=5922&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; TrimToNull( &lt;string&gt; ) &lt;/pre&gt;  === Description ===  Strip all zero chars (nulls) from the end of a string.  === Parameters ===  ==== string ====  The string to trim.  === R...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_TrimToNull&amp;diff=5922&amp;oldid=prev"/>
				<updated>2015-09-19T10:14:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; TrimToNull( &amp;lt;string&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Strip all zero chars (nulls) from the end of a string.  === Parameters ===  ==== string ====  The string to trim.  === R...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
TrimToNull( &amp;lt;string&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Strip all zero chars (nulls) from the end of a string.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== string ====&lt;br /&gt;
&lt;br /&gt;
The string to trim.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns trimmed string.&lt;br /&gt;
&lt;br /&gt;
Failure: Returns old string.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$Str = StrNew(@'\0', 15);&lt;br /&gt;
$Str[0] = 'A'; // Set first char to A&lt;br /&gt;
$Str[1] = 'B'; // Set second char to B&lt;br /&gt;
say $Str; // Prints: AB&lt;br /&gt;
say StrLen($Str); // 15&lt;br /&gt;
 &lt;br /&gt;
// Lets fix the string so its no longer 15 in size&lt;br /&gt;
// but fits all way to null term so 2 in size&lt;br /&gt;
say &amp;quot;Trimming...&amp;quot;;&lt;br /&gt;
$Str = TrimToNull($Str);&lt;br /&gt;
say $Str; // Prints: AB&lt;br /&gt;
say StrLen($Str); // 2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>