svn commit: r46068 - head/en_US.ISO8859-1/books/fdp-primer/docbook-markup
Konstantin Belousov
kostikbel at gmail.com
Sat Dec 6 18:48:31 UTC 2014
On Sat, Dec 06, 2014 at 06:24:35PM +0000, Benedict Reuschling wrote:
> Author: bcr
> Date: Sat Dec 6 18:24:35 2014
> New Revision: 46068
> URL: https://svnweb.freebsd.org/changeset/doc/46068
>
> Log:
> 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. :-)
What you changed was already correct. For hosted environments, C
standard requires that 'reaching the } that terminates the main function
returns a value of 0.', see 5.1.2.2.3 Program termination of 2ISO/IEC
9899:2012.
>
> Modified:
> head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml
>
> Modified: head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml
> ==============================================================================
> --- head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml Sat Dec 6 18:14:32 2014 (r46067)
> +++ head/en_US.ISO8859-1/books/fdp-primer/docbook-markup/chapter.xml Sat Dec 6 18:24:35 2014 (r46068)
> @@ -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-
> 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>
> _______________________________________________
> svn-doc-all at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-doc-all
> To unsubscribe, send any mail to "svn-doc-all-unsubscribe at freebsd.org"
More information about the svn-doc-head
mailing list