<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Kommandos wie: 347a348,351]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich möchte netcdf installieren um daraufhin exodusII laufen zu lassen. Dazu soll ich aber einige Änderungen in einem .c-file machen. Problem ist ich verstehe folgende kommandos (z.B: 347a348,351 siehe unten) nicht (vim?). Kann mir jemand sagen was ich genau tun soll? Also, folgendes:</p>
<p>The netcdf library must be modified slightly in order to handle the exodusII datamodel. The specific changes are:</p>
<p>src/ncdump/ncdump.c -- Due to the increased sizes above, the 'dims' and 'vdims' arrays are malloc'd instead of static arrays which fail with the increased sizes.</p>
<p>347a348,351<br />
&gt; #if 0<br />
&gt; /* The following code was blowing out the stack on some systems.<br />
&gt; * Changed code to get the memory off the heap using malloc instead<br />
&gt; */<br />
349a354,357<br />
&gt; #else<br />
&gt; struct ncdim *dims; /* dimensions */<br />
&gt; size_t *vdims; /* dimension sizes for a single variable */<br />
&gt; #endif<br />
359a368,370<br />
&gt; dims = NULL;<br />
&gt; vdims = NULL;</p>
<blockquote></blockquote>
<p>388c399<br />
&lt; if (ndims &gt; 0)<br />
---<br />
&gt; if (ndims &gt; 0) {<br />
389a401,403<br />
&gt; dims = malloc(ndims * sizeof(struct ncdim));<br />
&gt; vdims = malloc(ndims * sizeof(size_t));<br />
&gt; }<br />
508a523,526<br />
&gt; if (dims)<br />
&gt; free(dims);<br />
&gt; if (vdims)<br />
&gt; free(vdims);<br />
519a538,541<br />
&gt; if (dims)<br />
&gt; free(dims);<br />
&gt; if (vdims)<br />
&gt; free(vdims);</p>
<p>Vielen Dank!</p>
<p>Jo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/190453/kommandos-wie-347a348-351</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 00:32:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/190453.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Aug 2007 20:01:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kommandos wie: 347a348,351 on Wed, 22 Aug 2007 20:01:51 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich möchte netcdf installieren um daraufhin exodusII laufen zu lassen. Dazu soll ich aber einige Änderungen in einem .c-file machen. Problem ist ich verstehe folgende kommandos (z.B: 347a348,351 siehe unten) nicht (vim?). Kann mir jemand sagen was ich genau tun soll? Also, folgendes:</p>
<p>The netcdf library must be modified slightly in order to handle the exodusII datamodel. The specific changes are:</p>
<p>src/ncdump/ncdump.c -- Due to the increased sizes above, the 'dims' and 'vdims' arrays are malloc'd instead of static arrays which fail with the increased sizes.</p>
<p>347a348,351<br />
&gt; #if 0<br />
&gt; /* The following code was blowing out the stack on some systems.<br />
&gt; * Changed code to get the memory off the heap using malloc instead<br />
&gt; */<br />
349a354,357<br />
&gt; #else<br />
&gt; struct ncdim *dims; /* dimensions */<br />
&gt; size_t *vdims; /* dimension sizes for a single variable */<br />
&gt; #endif<br />
359a368,370<br />
&gt; dims = NULL;<br />
&gt; vdims = NULL;</p>
<blockquote></blockquote>
<p>388c399<br />
&lt; if (ndims &gt; 0)<br />
---<br />
&gt; if (ndims &gt; 0) {<br />
389a401,403<br />
&gt; dims = malloc(ndims * sizeof(struct ncdim));<br />
&gt; vdims = malloc(ndims * sizeof(size_t));<br />
&gt; }<br />
508a523,526<br />
&gt; if (dims)<br />
&gt; free(dims);<br />
&gt; if (vdims)<br />
&gt; free(vdims);<br />
519a538,541<br />
&gt; if (dims)<br />
&gt; free(dims);<br />
&gt; if (vdims)<br />
&gt; free(vdims);</p>
<p>Vielen Dank!</p>
<p>Jo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350027</guid><dc:creator><![CDATA[NoPanic2007]]></dc:creator><pubDate>Wed, 22 Aug 2007 20:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Kommandos wie: 347a348,351 on Wed, 22 Aug 2007 20:04:55 GMT]]></title><description><![CDATA[<p>Das sieht mir ziemlich nach einem diff aus.</p>
<p>Sowas lässt man am besten autoatisch lösen, kann dir aber nicht viel zu sagen, bin gerade dabei mir das näher anzusehen</p>
<p>EDIT://<br />
Diese &quot;komischen&quot; Zeichenfolgen sind ein effekt von diff und haben nichts mit C(++) zu tun</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350031</guid><dc:creator><![CDATA[darthdespotism]]></dc:creator><pubDate>Wed, 22 Aug 2007 20:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to Kommandos wie: 347a348,351 on Wed, 22 Aug 2007 20:07:00 GMT]]></title><description><![CDATA[<p>man diff<br />
man patch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350034</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 22 Aug 2007 20:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to Kommandos wie: 347a348,351 on Wed, 22 Aug 2007 20:17:00 GMT]]></title><description><![CDATA[<p>Hat mir leider noch nicht so richtig geholfen... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350043</guid><dc:creator><![CDATA[NoPanic2007]]></dc:creator><pubDate>Wed, 22 Aug 2007 20:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Kommandos wie: 347a348,351 on Wed, 22 Aug 2007 20:42:24 GMT]]></title><description><![CDATA[<p>NoPanic2007 schrieb:</p>
<blockquote>
<p>Hat mir leider noch nicht so richtig geholfen... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>Warum nicht? Das was du gepostet hast ist nicht echter Quellcode sondern die Ausgabe des Programmes &quot;diff&quot;. Such also im Internet nach &quot;diff&quot; und &quot;patch&quot; (oder, um die Suchergebnisse einzugrenzen &quot;man diff&quot; und &quot;man patch&quot;) und dir wird geholfen werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350058</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Wed, 22 Aug 2007 20:42:24 GMT</pubDate></item><item><title><![CDATA[Reply to Kommandos wie: 347a348,351 on Wed, 22 Aug 2007 21:12:24 GMT]]></title><description><![CDATA[<p>ah, okay - hab was gefunden. hier, für die nachwelt:</p>
<p><a href="http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial" rel="nofollow">http://www.linuxtutorialblog.com/post/introduction-using-diff-and-patch-tutorial</a></p>
<p>danke,</p>
<p>jo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350075</guid><dc:creator><![CDATA[NoPanic2007]]></dc:creator><pubDate>Wed, 22 Aug 2007 21:12:24 GMT</pubDate></item></channel></rss>