diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-12-09 12:06:45 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-12-09 12:24:34 +0100 |
commit | 8c3bd620bca7de41c9d3e28d73f09ec88fd52a86 (patch) | |
tree | 3ede3278ccae71545b0d4ca29983dc32a0edf758 | |
parent | 4ea602c6ab2716c00d189d28199a9236180d2145 (diff) |
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 <alx@kernel.org>
-rw-r--r-- | man3/scanf.3 | 3 |
1 files changed, 3 insertions, 0 deletions
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), |