Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #18511

Re: i think i found

Message-ID <4F5C1523.3C16@mindspring.com> (permalink)
Date 2012-03-10 21:59 -0500
From pete <pfiland@mindspring.com>
Organization PF
Newsgroups comp.lang.c
Subject Re: i think i found
References <jje9kd$d14$1@reader1.panix.com> <ea3cda64-a914-4f34-ba2a-59df5fb9fc93@m13g2000yqi.googlegroups.com> <4F5BF051.303D@mindspring.com> <jjgu8p$gtm$1@dont-email.me>

Show all headers | View raw


James Kuyper wrote:
> 
> On 03/10/2012 07:22 PM, pete wrote:
> > Barry Schwarz wrote:
> ...
> > Prior to C99, these words:
> >
> >       ISO/IEC 9899: 1990
> >       6.6.6.4 The return statement
> >
> >       A function may have any number of return statements,
> >       with and without expressions.
> >
> >       If a return statement without an expression is executed,
> >       and the value of the function call is used by the caller,
> >       the behavior is undefined.
> >       Reaching the } that terminates a function is
> >       equivalent to executing a return statement without an expression.
> >
> > suggest that the use of the above function was defined in C90,
> > as long as the code didn't use the return value.
> >
> > Both C99 and n1570, only have this much to say on this matter:
> >
> >       A function may have any number of return statements.
> 
> They didn't change that aspect of C in C99,
> they only changed the way it was expressed.
> 6.9.1p12: "If the } that terminates a function is reached,
> and the value
> of the function call is used by the caller,
> the behavior is undefined.".

Thank you.
n1570 is the same way.

-- 
pete

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

i think i found jgk@panix.com (Joe keane) - 2012-03-10 01:09 +0000
  Re: i think i found Ian Collins <ian-news@hotmail.com> - 2012-03-10 14:23 +1300
  Re: i think i found nick_keighley_nospam@hotmail.com - 2012-03-10 03:13 -0800
  Re: i think i found Barry Schwarz <schwarz45@yahoo.com> - 2012-03-10 09:17 -0800
    Re: i think i found pete <pfiland@mindspring.com> - 2012-03-10 19:22 -0500
      Re: i think i found James Kuyper <jameskuyper@verizon.net> - 2012-03-10 20:14 -0500
        Re: i think i found pete <pfiland@mindspring.com> - 2012-03-10 21:59 -0500
      Re: i think i found jgk@panix.com (Joe keane) - 2012-03-12 17:29 +0000
    Re: i think i found jgk@panix.com (Joe keane) - 2012-03-11 19:35 +0000
      Re: i think i found Keith Thompson <kst-u@mib.org> - 2012-03-11 13:06 -0700
        Re: i think i found jgk@panix.com (Joe keane) - 2012-03-13 20:27 +0000
          Re: i think i found Keith Thompson <kst-u@mib.org> - 2012-03-13 15:25 -0700
            Re: i think i found jgk@panix.com (Joe keane) - 2012-03-14 23:34 +0000
              Re: i think i found Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-03-14 20:38 -0400
              Re: i think i found Tim Rentsch <txr@alumni.caltech.edu> - 2012-03-15 18:03 -0700
                Re: i think i found jgk@panix.com (Joe keane) - 2012-03-17 17:34 +0000
                Re: i think i found Keith Thompson <kst-u@mib.org> - 2012-03-17 18:02 -0700
                Re: i think i found jgk@panix.com (Joe keane) - 2012-03-19 15:41 +0000
                Re: i think i found Tim Rentsch <txr@alumni.caltech.edu> - 2012-03-21 05:52 -0700

csiph-web