Sequence points in fscanf
Martin Sebor
msebor@redhat.com
Tue Feb 17 16:40:00 GMT 2015
On 02/17/2015 09:16 AM, Florian Weimer wrote:
> Is there a sequence point between the assignments for the individual
> format specifiers? I think there is not (in C11). Does this trigger
> undefined behavior if application code uses the same object to store
> multiple format conversion results?
Quoting from 7.21.6 Formatted input/output functions, paragraph
1:
The formatted input/output functions shall behave as if there
is a sequence point after the actions associated with each
specifier. 274)
Footnote 274) The fprintf functions perform writes to memory
for the %n specifier.
Martin
More information about the Libc-help
mailing list