<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to MEMSET</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ec59609a26/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ec59609a26/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/ec59609a26/</id><updated>2020-02-27T16:06:38.505000Z</updated><subtitle>Recent posts to MEMSET</subtitle><entry><title>MEMSET</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ec59609a26/?limit=25#032b" rel="alternate"/><published>2020-02-27T16:06:38.505000Z</published><updated>2020-02-27T16:06:38.505000Z</updated><author><name>o5i</name><uri>https://forge.codesys.com/u/o5i/</uri></author><id>https://forge.codesys.combe5be0cc7bd238b0bf24dfc0f73d86b828690e11</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, is it possible to use it whit 2d arrays? If i want to delete only 1 column or row?&lt;br/&gt;
like ```&lt;/p&gt;
&lt;p&gt;memset(myarray[]&lt;span&gt;[1]&lt;/span&gt;,0,sizeof(myarray[]&lt;span&gt;[1]&lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;```???&lt;br/&gt;
I managed to delete the whole array using this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;SysMemSet&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;pDest&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;SET_AUTO_NAME&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;udiValue&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;udiCount&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;SIZEOF&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;SET_AUTO_NAME&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>MEMSET</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ec59609a26/?limit=25#cc3d" rel="alternate"/><published>2020-02-27T16:06:36.196000Z</published><updated>2020-02-27T16:06:36.196000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.com467968b7275e03c95845a102b9afbc4999fa75b4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
you could use the sysmemset in the sysmem library.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MEMSET</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ec59609a26/?limit=25#57d3" rel="alternate"/><published>2020-02-27T16:06:35.415000Z</published><updated>2020-02-27T16:06:35.415000Z</updated><author><name>o5i</name><uri>https://forge.codesys.com/u/o5i/</uri></author><id>https://forge.codesys.coma76cd1691304c08c8f42677203b419f863fa14ee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, i was wondering if there is a MEMSET function. I want to set a array to 0.&lt;br/&gt;
Or maybee is it possible to make a struct of arrays and set that to 0?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>