Question about sequence points 2

Discussion in 'C Programming' started by spibou@gmail.com, Aug 4, 2006.

  1. Guest

    In clause 3 of 7.1.4 of N1124 we read:

    There is a sequence point immediately before
    a library function returns.

    If some function is written in C is the above not guaranteed
    anyway from the other rules regarding sequence points ?
    My reasoning is that there is going to be a sequence point
    just after the last statement or initialization executed before
    the function returns.

    So does the above clause exist simply to cover the case where
    a library function is not implemented in C ?


    Spiros Bousbouras
     
    , Aug 4, 2006
    #1
    1. Advertisements

  2. Guest

    wrote:
    >
    > In clause 3 of 7.1.4 of N1124 we read:
    >
    > There is a sequence point immediately before
    > a library function returns.
    >
    > If some function is written in C is the above not guaranteed
    > anyway from the other rules regarding sequence points ?


    Yes.

    > So does the above clause exist simply to cover the case where
    > a library function is not implemented in C ?


    Yes.

    -Larry Jones

    But Mom, frogs are our FRIENDS! -- Calvin
     
    , Aug 4, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave Theese

    Sequence points

    Dave Theese, Sep 3, 2003, in forum: C++
    Replies:
    2
    Views:
    425
    Karl Heinz Buchegger
    Sep 3, 2003
  2. Timothy Madden

    Does C++ have sequence points ?

    Timothy Madden, Sep 20, 2004, in forum: C++
    Replies:
    4
    Views:
    489
    Peter van Merkerk
    Sep 21, 2004
  3. j

    Sequence points

    j, Jul 23, 2003, in forum: C Programming
    Replies:
    4
    Views:
    503
    Tak-Shing Chan
    Jul 24, 2003
  4. Question about sequence points

    , Aug 4, 2006, in forum: C Programming
    Replies:
    3
    Views:
    417
    Clark S. Cox III
    Aug 12, 2006
  5. Kaz Kylheku
    Replies:
    2
    Views:
    393
    Chris M. Thomasson
    Feb 25, 2009
  6. Phil Carmody
    Replies:
    30
    Views:
    1,013
    Tim Rentsch
    Mar 12, 2009
  7. REH
    Replies:
    2
    Views:
    414
    Flash Gordon
    Feb 25, 2009
  8. John Regehr
    Replies:
    62
    Views:
    1,860
    Bruce Cook
    Mar 19, 2009
Loading...