From 8c3bd620bca7de41c9d3e28d73f09ec88fd52a86 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 9 Dec 2023 12:06:45 +0100 Subject: scanf.3: CAVEATS: Trailing text cannot be checked scanf("%d foo"); It is impossible to know if scanf(3) consumed " foo" or not. Signed-off-by: Alejandro Colomar --- man3/scanf.3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man3/scanf.3 b/man3/scanf.3 index de2702b35..8732ef507 100644 --- a/man3/scanf.3 +++ b/man3/scanf.3 @@ -141,6 +141,9 @@ These functions make it difficult to distinguish newlines from other white space, This is especially problematic with line-buffered input, like the standard input stream. +.P +These functions can't report errors after the last +non-suppressed conversion specification. .SH SEE ALSO .BR fgets (3), .BR getline (3), -- cgit v1.2.3