<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sat May 25, 2013 8:57 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sat May 25, 2013 8:57 am</pubDate>
  <lastBuildDate>Sat May 25, 2013 8:57 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>RE: How to generate a file which contains the def. of a func</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=8837#8837</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Sep 19, 2005 2:56 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Would that be ...&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
int system &amp;#40;const char * string&amp;#41;;&lt;br /&gt;
system&amp;#40;&amp;#41;&amp;nbsp; executes&amp;nbsp; a command specified in string by calling /bin/sh&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-c string, and returns after the command has been completed.&amp;nbsp; During&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;execution&amp;nbsp; of&amp;nbsp; the&amp;nbsp; command, SIGCHLD will be blocked, and SIGINT and&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SIGQUIT will be ignored.&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
You could possibly just echo it to the file ... there must be a better way though (grin)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
jm</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=8837#8837</comments>
                                        <author>jjmac</author>
                                        <pubDate>Mon Sep 19, 2005 2:56 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=8837#8837</guid>
                                      </item>
                                      <item>
                                        <title>How to generate a file which contains the def. of a funct.</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=8836#8836</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=3299'&gt;fuchi&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Sep 19, 2005 1:57 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      In the file makeFoo2.c I have a main function that prints the code that will end up in the file &lt;br /&gt;
foo2.c. The function foo2() prompts for who you want to say 'Hello' to, reads the string from stdin and returns that string.&lt;br /&gt;
&lt;br /&gt;
The file foo2.c , which contains the defintion of the function foo2() needs to be generated by an invocation of makeFoo2.c file.&lt;br /&gt;
&lt;br /&gt;
I am not sure how to do this all.&lt;br /&gt;
&lt;br /&gt;
If any ideas, please help.&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=8836#8836</comments>
                                        <author>fuchi</author>
                                        <pubDate>Mon Sep 19, 2005 1:57 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=8836#8836</guid>
                                      </item></channel></rss>