Question about sequence points 2

S

spibou

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
 
L

lawrence.jones

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top