SVNews r326635

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-06 21:12:24 - r326635 by stevek (stevek)

Complete list of files affected by revision r326635:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/lib/libc/stdio/vfwscanf.c  

Commit message:

The function fwscanf() return value is wrong when encountering an early
matching failure.

According to the Open Group documentation for fwscanf:
"Upon successful completion, these functions shall return the number of
successfully matched and assigned input items; this number can be zero in
the event of an early matching failure."

Without this change, fwscanf would return EOF in the case of an early
matching failure, instead of the proper return value of 0.

This change aligns fwscanf(3) with the implementation in fscanf(3).

PR: 202240
Submitted by:
Reviewed by: jhb, cem
Approved by: sjg (mentor)
MFC after: 2 weeks
Differential Revision:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 8 ms, 1 file printed. Current time is 2018-03-21 10:56:21. All times are in UTC/GMT.