(C question) (s - out.s) + func(&out) -> ?
D. Hugh Redelmeier
hugh-pmF8o41NoarQT0dZR+AlfA at public.gmane.org
Thu Oct 31 15:40:20 UTC 2013
| From: William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>
| Question for C expert... Given the following
The order of operation is well-defined in C: operator precedence.
That says nothing about the order of evaluation of operands, only
about how they are combined.
Your code has a race condition and is undefined by the C standard.
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list