Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 2014 20:48:24 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Benedict Reuschling <bcr@FreeBSD.org>
Cc:        svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org
Subject:   Re: svn commit: r46068 - head/en_US.ISO8859-1/books/fdp-primer/docbook-markup
Message-ID:  <20141206184824.GL97072@kib.kiev.ua>
In-Reply-To: <201412061824.sB6IOZXh050877@svn.freebsd.org>
References:  <201412061824.sB6IOZXh050877@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-doc-all
> To unsubscribe, send any mail to "svn-doc-all-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141206184824.GL97072>