Change the "hello world" examples so that they return 0.

I realize that this is not a C programming primer, but
we can at least try to be correct here. :-)
This commit is contained in:
Benedict Reuschling 2014-12-06 18:24:35 +00:00
parent fd41fff072
commit 647bbf1d27
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=46068

View file

@ -1104,6 +1104,7 @@ int
main(void)
{
printf("hello, world\n");
return 0;
}<tag class="endtag">programlisting</tag></programlisting>
<para>Notice how the angle brackets in the
@ -1120,6 +1121,7 @@ int
main(void)
{
printf("hello, world\n");
return 0;
}</programlisting>
</example>
</sect2>
@ -1150,6 +1152,7 @@ int <tag class="emptytag">co xml:id="co-ex-return"</tag>
main(void)
{
printf("hello, world\n"); <tag class="emptytag">co xml:id="co-ex-printf"</tag>
return 0;
}<tag class="endtag">programlisting</tag>
<tag class="starttag">calloutlist</tag>
@ -1178,6 +1181,7 @@ int <co xml:id="co-ex-return"/>
main(void)
{
printf("hello, world\n"); <co xml:id="co-ex-printf"/>
return 0;
}</programlisting>
<calloutlist>