Re: svn commit: r46068 - head/en_US.ISO8859-1/books/fdp-primer/docbook-markup

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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>
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-doc-all
> To unsubscribe, send any mail to "[email protected]"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.