diff options
Diffstat (limited to 'man3/sscanf.3')
-rw-r--r-- | man3/sscanf.3 | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/man3/sscanf.3 b/man3/sscanf.3 index 3c668d6aa..223f4f557 100644 --- a/man3/sscanf.3 +++ b/man3/sscanf.3 @@ -22,7 +22,7 @@ .\" Add ERRORS section. .\" Document the 'a' and 'm' modifiers for dynamic string allocation. .\" -.TH sscanf 3 2023-02-05 "Linux man-pages 6.03" +.TH sscanf 3 2023-07-20 "Linux man-pages 6.05.01" .SH NAME sscanf, vsscanf \- input string format conversion .SH LIBRARY @@ -527,13 +527,6 @@ The value .B EOF is returned if the end of input is reached before either the first successful conversion or a matching failure occurs. -.B EOF -is also returned if a read error occurs, -in which case the error indicator for the stream (see -.BR ferror (3)) -is set, and -.I errno -is set to indicate the error. .SH ERRORS .TP .B EILSEQ @@ -549,23 +542,23 @@ Out of memory. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). -.ad l -.nh .TS allbox; lbx lb lb l l l. Interface Attribute Value T{ +.na +.nh .BR sscanf (), .BR vsscanf () T} Thread safety MT-Safe locale .TE -.hy -.ad .sp 1 .SH STANDARDS -These functions conform to C99 and POSIX.1-2001. +C11, POSIX.1-2008. +.SH HISTORY +C89, POSIX.1-2001. .PP The .B q @@ -721,7 +714,7 @@ the returned string, as in the following example: .EX char *p; int n; - +\& errno = 0; n = sscanf(str, "%m[a\-z]", &p); if (n == 1) { |