* RFC: man-page for strfrom functions
@ 2016-11-30 19:22 Wainer S. Moschetta
[not found] ` <e277d505-797f-acaf-2fce-56de92db5030-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 21+ messages in thread
From: Wainer S. Moschetta @ 2016-11-30 19:22 UTC (permalink / raw)
To: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi all,
The strfrom class of functions convert a floating-point value into string. It is recently introduced in Glibc (see commit 6962682ffe5e) and will be in version 2.25.
I've prepared a patch to add strfrom.3 in the man-pages but I'd like to discuss a point for the contribution beforehand:
- strfrom* is similar to snprintf() except for the format string. For instance, it doesn't have the length modifier and accept just a subset of conversion specifiers.
That said, I've doubt if wouldn't be better to place strfrom documentation at snprintf man-page (which is actually printf's) rather than on its own page.
What do you advice me?
- Wainer
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 21+ messages in thread[parent not found: <e277d505-797f-acaf-2fce-56de92db5030-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* Re: RFC: man-page for strfrom functions [not found] ` <e277d505-797f-acaf-2fce-56de92db5030-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2016-12-01 17:15 ` Michael Kerrisk (man-pages) [not found] ` <ac388dba-b7e4-b33e-7c43-eda88a8e4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 21+ messages in thread From: Michael Kerrisk (man-pages) @ 2016-12-01 17:15 UTC (permalink / raw) To: Wainer S. Moschetta, linux-man-u79uwXL29TY76Z2rM5mHXA Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Hello Wainer, On 11/30/2016 08:22 PM, Wainer S. Moschetta wrote: > Hi all, > > The strfrom class of functions convert a floating-point value into > string. It is recently introduced in Glibc (see commit 6962682ffe5e) > and will be in version 2.25. > > I've prepared a patch to add strfrom.3 in the man-pages but I'd like > to discuss a point for the contribution beforehand: > > - strfrom* is similar to snprintf() except for the format string. For > instance, it doesn't have the length modifier and accept just a > subset of conversion specifiers. > > That said, I've doubt if wouldn't be better to place strfrom > documentation at snprintf man-page (which is actually printf's) > rather than on its own page. Thanks. It would be great to get this documentation! My estimation is that these functions would be better on their own page, rather than in printf(3). The strfrom*() functions provide only a subset of what snprintf(), and I think embedding the description of strfrom*() in printf() means they'd be a bit lost in among all the rest of the text. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <ac388dba-b7e4-b33e-7c43-eda88a8e4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* [PATCH] Add strfrom.3 [not found] ` <ac388dba-b7e4-b33e-7c43-eda88a8e4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-12-02 19:55 ` Wainer dos Santos Moschetta [not found] ` <20161202195509.10640-1-wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-02 19:55 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 669 bytes --] The ISO/IEC TS 18661-1 specifies the strfrom() class of functions that convert a float-point value to string. The strfromd(), strfromf(), and strfroml() functions are introduced (commit 6962682ffe5e) in GNU C Library 2.25. Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strfrom.3 | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ man3/strfromd.3 | 1 + man3/strfromf.3 | 1 + man3/strfroml.3 | 1 + 4 files changed, 223 insertions(+) create mode 100644 man3/strfrom.3 create mode 100644 man3/strfromd.3 create mode 100644 man3/strfromf.3 create mode 100644 man3/strfroml.3 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: 0001-Add-strfrom.3.patch --] [-- Type: text/x-patch; name="0001-Add-strfrom.3.patch", Size: 6587 bytes --] diff --git a/man3/strfrom.3 b/man3/strfrom.3 new file mode 100644 index 0000000..fdc15cc --- /dev/null +++ b/man3/strfrom.3 @@ -0,0 +1,220 @@ +.\" Copyright (c) 2016, IBM Corporation. +.\" Written by Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> +.\" +.\" %%%LICENSE_START(VERBATIM) +.\" Permission is granted to make and distribute verbatim copies of this +.\" manual provided the copyright notice and this permission notice are +.\" preserved on all copies. +.\" +.\" Permission is granted to copy and distribute modified versions of +.\" this manual under the conditions for verbatim copying, provided that +.\" the entire resulting derived work is distributed under the terms of +.\" a permission notice identical to this one. +.\" +.\" Since the Linux kernel and libraries are constantly changing, this +.\" manual page may be incorrect or out-of-date. The author(s) assume. +.\" no responsibility for errors or omissions, or for damages resulting. +.\" from the use of the information contained herein. The author(s) may. +.\" not have taken the same level of care in the production of this. +.\" manual, which is licensed free of charge, as they might when working. +.\" professionally. +.\" +.\" Formatted or processed versions of this manual, if unaccompanied by +.\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END +.\" +.\" References consulted: +.\" Glibc 2.25 source code and manual. +.\" C99 standard document. +.\" ISO/IEC TS 18661-1 technical specification. +.\" snprintf and other man.3 pages. +.\" +.TH STRFROM 3 2016-12-02 "GNU C Library" +.SH NAME +strfromd, strfromf, strfroml \- convert a floating-point value into a string. +.SH SYNOPSIS +.B #include <stdlib.h> +.sp +.BI "int strfromd (char * restrict " str ", size_t " n ", const char * restrict " format ", double " fp ");" +.sp +.BI "int strfromf (char * restrict " str ", size_t " n ", const char * restrict " format ", float "fp ");" +.sp +.BI "int strfroml (char * restrict " str ", size_t " n ", const char * restrict " format ", long double " fp ");" +.sp +.in -4 +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR strfromd (), +.BR strfromf (), +.BR strfroml (): +.RS 4 +__STDC_WANT_IEC_60559_BFP_EXT__ +.RE +.ad b +.SH DESCRIPTION +The +.BR strfrom () +class of functions converts a floating-point value +.I fp +into a string of characters +.IR str , +with a configurable +.IR format +string. At most +.I n +characters are stored into +.IR str . +.sp +The terminating null character ('\\0') is written if and only if +.I n +is sufficiently large, otherwise the written string is truncated at +.I n +characters. +.sp +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions are equivalent to +.sp +.in +4 +.BI "snprintf (str, n, format, fp)" +.in +.sp +except for the +.I format +string. +.SS Format of the format string +The +.I format +string must start with the character %. This is followed by an optional precision which starts with period character (.), followed by an optional decimal integer. If no integer is specified after the period character, the precision used is zero. Finally, it should have one of the conversion specifiers +.BR a , +.BR A , +.BR e , +.BR E , +.BR f , +.BR F , +.BR g , +or +.BR G . +.sp +The conversion specifier is applied based on the floating-point type indicated by the function suffix. Therefore, unlike +.BR snprintf (), +the format string does not have a length modifier character. See +.BR snprintf (3) +for a detailed description of these conversion specifiers. +.sp +The implementation conforms to C99 standard on conversion of NaN and infinity values: +.sp +.in +4 +If +.I fp +is a NaN, +NaN, or -NaN, and +.BR f +(or +.BR a , +.BR e , +.BR g ) +is the conversion specifier, the conversion is to "nan", "nan", "-nan", respectively. If +.B F +(or +.BR A , +.BR E , +.BR G ) +is the conversion specifier, the conversion is to "NAN" or "-NAN". +.sp +Likewise if +.I fp +is infinity, it is converted to [-]inf or [-]INF. +.in +.sp +A malformed +.I format +string results in undefined behavior. +.SH RETURN VALUE +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions return the number of characters that would have been written in +.I str +if +.I n +had enough space, +not counting the terminating null character. Thus, a return value of +.I n +or more means that the output was truncated. +.SH VERSIONS +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions are available in glibc since version 2.25. +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7) +and +.B POSIX Safety Concepts +section in GNU C Library manual. +.sp +.TS +allbox; +lb lb lb +l l l. +Interface Attribute Value +T{ +.BR strfromd (), +.BR strfromf (), +.BR strfroml () +T} Thread safety MT-Safe locale +\^ Asynchronous signal safety AS-Unsafe heap +\^ Asynchronous cancellation safety AC-Unsafe mem +.TE +.sp +Note: these attributes are preliminary. +.SH CONFORMING TO +C99, ISO/IEC TS 18661-1. +.SH EXAMPLES +To convert the 12.1 value as a float type to string using decimal notation, resulting in "12.100000": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char *s = (char *) malloc (ssize); +strfromf (s, ssize, "%f", 12.1); +.fi +.in +.sp +To convert the 12.3456 value as a float type to string using decimal notation with two digits of precision, resulting in "12.35": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char *s = (char *) malloc (ssize); +strfromf (s, ssize, "%.2f", 12.3456); +.fi +.in +.sp +To convert the 12.345e19 value as a double type to string using scientific notation with zero digits of precision, resulting in "1E+20": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char *s = (char *) malloc (ssize); +strfromd (s, ssize, "%.E", 12.345e19); +.fi +.in +.SH SEE ALSO +.BR snprintf (3) diff --git a/man3/strfromd.3 b/man3/strfromd.3 new file mode 100644 index 0000000..7d8d5e4 --- /dev/null +++ b/man3/strfromd.3 @@ -0,0 +1 @@ +.so man3/strfrom.3 diff --git a/man3/strfromf.3 b/man3/strfromf.3 new file mode 100644 index 0000000..7d8d5e4 --- /dev/null +++ b/man3/strfromf.3 @@ -0,0 +1 @@ +.so man3/strfrom.3 diff --git a/man3/strfroml.3 b/man3/strfroml.3 new file mode 100644 index 0000000..7d8d5e4 --- /dev/null +++ b/man3/strfroml.3 @@ -0,0 +1 @@ +.so man3/strfrom.3 ^ permalink raw reply related [flat|nested] 21+ messages in thread
[parent not found: <20161202195509.10640-1-wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH] Add strfrom.3 [not found] ` <20161202195509.10640-1-wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2016-12-03 14:14 ` Michael Kerrisk (man-pages) [not found] ` <c5d0be31-9c1d-000a-89ac-a18909ef4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 21+ messages in thread From: Michael Kerrisk (man-pages) @ 2016-12-03 14:14 UTC (permalink / raw) To: Wainer dos Santos Moschetta Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Hello Wainer, Thanks! This is a very nice first draft. I have a just a few minor suggestions. 1. Name the page "strfromd", rather than "strfrom" (and adjust the link files accordingly, and also the .TH within the file). I suggest this, because this is a typical pattern used in many other pages. 2. Please make this into a patch series, if possible, with the link files each as a separate patch. 3. Add some patches that add strfromd(3) to the SEE ALSO section of other pages, such as printf(3) and atod(3). Are these functions affected by the locale settings? There should be a statement about this in this page. On 12/02/2016 08:55 PM, Wainer dos Santos Moschetta wrote: > > The ISO/IEC TS 18661-1 specifies the strfrom() class > of functions that convert a float-point value to string. > > The strfromd(), strfromf(), and strfroml() functions are > introduced (commit 6962682ffe5e) in GNU C Library 2.25. > > Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > --- > man3/strfrom.3 | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > man3/strfromd.3 | 1 + > man3/strfromf.3 | 1 + > man3/strfroml.3 | 1 + > 4 files changed, 223 insertions(+) > create mode 100644 man3/strfrom.3 > create mode 100644 man3/strfromd.3 > create mode 100644 man3/strfromf.3 > create mode 100644 man3/strfroml.3 -- > diff --git a/man3/strfrom.3 b/man3/strfrom.3 > new file mode 100644 > index 0000000..fdc15cc > --- /dev/null > +++ b/man3/strfrom.3 > @@ -0,0 +1,220 @@ > +.\" Copyright (c) 2016, IBM Corporation. > +.\" Written by Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > +.\" > +.\" %%%LICENSE_START(VERBATIM) > +.\" Permission is granted to make and distribute verbatim copies of this > +.\" manual provided the copyright notice and this permission notice are > +.\" preserved on all copies. > +.\" > +.\" Permission is granted to copy and distribute modified versions of > +.\" this manual under the conditions for verbatim copying, provided that > +.\" the entire resulting derived work is distributed under the terms of > +.\" a permission notice identical to this one. > +.\" > +.\" Since the Linux kernel and libraries are constantly changing, this > +.\" manual page may be incorrect or out-of-date. The author(s) assume. > +.\" no responsibility for errors or omissions, or for damages resulting. > +.\" from the use of the information contained herein. The author(s) may. > +.\" not have taken the same level of care in the production of this. > +.\" manual, which is licensed free of charge, as they might when working. > +.\" professionally. > +.\" > +.\" Formatted or processed versions of this manual, if unaccompanied by > +.\" the source, must acknowledge the copyright and authors of this work. > +.\" %%%LICENSE_END > +.\" > +.\" References consulted: > +.\" Glibc 2.25 source code and manual. > +.\" C99 standard document. > +.\" ISO/IEC TS 18661-1 technical specification. > +.\" snprintf and other man.3 pages. > +.\" > +.TH STRFROM 3 2016-12-02 "GNU C Library" So, make this "STRFROMD". > +.SH NAME > +strfromd, strfromf, strfroml \- convert a floating-point value into a string. > +.SH SYNOPSIS > +.B #include <stdlib.h> > +.sp > +.BI "int strfromd (char * restrict " str ", size_t " n ", const char * restrict " format ", double " fp ");" Please wrap these long declarations, and remove the space after "*": .BI "int strfromd (char *restrict " str ", size_t " n , .BI " const char *restrict " format ", double " fp ");" > +.sp > +.BI "int strfromf (char * restrict " str ", size_t " n ", const char * restrict " format ", float "fp ");" > +.sp > +.BI "int strfroml (char * restrict " str ", size_t " n ", const char * restrict " format ", long double " fp ");" > +.sp > +.in -4 > +Feature Test Macro Requirements for glibc (see > +.BR feature_test_macros (7)): > +.in > +.sp > +.ad l > +.BR strfromd (), > +.BR strfromf (), > +.BR strfroml (): > +.RS 4 > +__STDC_WANT_IEC_60559_BFP_EXT__ > +.RE > +.ad b > +.SH DESCRIPTION > +The > +.BR strfrom () > +class of functions converts a floating-point value > +.I fp > +into a string of characters > +.IR str , > +with a configurable > +.IR format > +string. At most Please start new sentences on new source lines. (And the same for many instances below.) > +.I n > +characters are stored into > +.IR str . > +.sp > +The terminating null character ('\\0') is written if and only if > +.I n > +is sufficiently large, otherwise the written string is truncated at > +.I n > +characters. > +.sp > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions are equivalent to > +.sp > +.in +4 > +.BI "snprintf (str, n, format, fp)" > +.in > +.sp > +except for the > +.I format > +string. > +.SS Format of the format string > +The > +.I format > +string must start with the character %. This is followed by an optional precision which starts with period character (.), followed by an optional decimal integer. If no integer is specified after the period character, the precision used is zero. Finally, it should have one of the conversion specifiers Please wrap source lines to a maximum of 75 characters, and start new sentence on new lines. > +.BR a , > +.BR A , > +.BR e , > +.BR E , > +.BR f , > +.BR F , > +.BR g , > +or > +.BR G . > +.sp > +The conversion specifier is applied based on the floating-point type indicated by the function suffix. Therefore, unlike > +.BR snprintf (), > +the format string does not have a length modifier character. See > +.BR snprintf (3) > +for a detailed description of these conversion specifiers. > +.sp > +The implementation conforms to C99 standard on conversion of NaN and infinity values: sto/to the/ > +.sp > +.in +4 > +If > +.I fp > +is a NaN, +NaN, or -NaN, and > +.BR f > +(or > +.BR a , > +.BR e , > +.BR g ) > +is the conversion specifier, the conversion is to "nan", "nan", "-nan", respectively. If s/"-nan"/or "-nan"/ > +.B F > +(or > +.BR A , > +.BR E , > +.BR G ) > +is the conversion specifier, the conversion is to "NAN" or "-NAN". > +.sp > +Likewise if > +.I fp > +is infinity, it is converted to [-]inf or [-]INF. > +.in > +.sp > +A malformed > +.I format > +string results in undefined behavior. > +.SH RETURN VALUE > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions return the number of characters that would have been written in > +.I str > +if > +.I n > +had enough space, > +not counting the terminating null character. Thus, a return value of > +.I n > +or more means that the output was truncated. s/more/greater/ > +.SH VERSIONS > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions are available in glibc since version 2.25. > +.SH ATTRIBUTES > +For an explanation of the terms used in this section, see > +.BR attributes (7) > +and s/and/and the/ > +.B POSIX Safety Concepts > +section in GNU C Library manual. > +.sp > +.TS > +allbox; > +lb lb lb > +l l l. > +Interface Attribute Value > +T{ > +.BR strfromd (), > +.BR strfromf (), > +.BR strfroml () > +T} Thread safety MT-Safe locale > +\^ Asynchronous signal safety AS-Unsafe heap > +\^ Asynchronous cancellation safety AC-Unsafe mem > +.TE > +.sp > +Note: these attributes are preliminary. > +.SH CONFORMING TO > +C99, ISO/IEC TS 18661-1. > +.SH EXAMPLES > +To convert the 12.1 value as a float type to string using decimal notation, resulting in "12.100000": s/the 12.1 value/the value 12.1/ (And various other similar fixes below.) > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char *s = (char *) malloc (ssize); s/malloc /malloc/ (And again below.) > +strfromf (s, ssize, "%f", 12.1); > +.fi > +.in > +.sp > +To convert the 12.3456 value as a float type to string using decimal notation with two digits of precision, resulting in "12.35": s/string/a string/ > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char *s = (char *) malloc (ssize); > +strfromf (s, ssize, "%.2f", 12.3456); > +.fi > +.in > +.sp > +To convert the 12.345e19 value as a double type to string using scientific notation with zero digits of precision, resulting in "1E+20": > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char *s = (char *) malloc (ssize); > +strfromd (s, ssize, "%.E", 12.345e19); > +.fi > +.in > +.SH SEE ALSO Add "atod(3)" here. > +.BR snprintf (3) > diff --git a/man3/strfromd.3 b/man3/strfromd.3 > new file mode 100644 > index 0000000..7d8d5e4 > --- /dev/null > +++ b/man3/strfromd.3 > @@ -0,0 +1 @@ > +.so man3/strfrom.3 Remove the above > diff --git a/man3/strfromf.3 b/man3/strfromf.3 > new file mode 100644 > index 0000000..7d8d5e4 > --- /dev/null > +++ b/man3/strfromf.3 > @@ -0,0 +1 @@ > +.so man3/strfrom.3 s/strfrom/strfromd/ > diff --git a/man3/strfroml.3 b/man3/strfroml.3 > new file mode 100644 > index 0000000..7d8d5e4 > --- /dev/null > +++ b/man3/strfroml.3 > @@ -0,0 +1 @@ > +.so man3/strfrom.3 s/strfrom/strfromd/ Cheers, Michael -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <c5d0be31-9c1d-000a-89ac-a18909ef4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* [PATCH v2 0/6] Add strfromd.3: changelog [not found] ` <c5d0be31-9c1d-000a-89ac-a18909ef4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-12-05 18:30 ` Wainer dos Santos Moschetta [not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-05 18:30 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA This patch set have following changes since v1: - Broke in fine-grained patches. - Moved content from strfrom.3 to strfromd.3. - strfromf.3 and strfroml.3 link to strfromd.3. - Changed strfromd.3: - Keep source lines less than the 75 characters length limit. - Wrapped function declarations in 75 chars limit. - Now start new sentences on new source lines. - Fixed typos. - Added NOTES section about locale influence in strfrom* functions. - Added atof.3 and strtod.3 to SEE ALSO. - Formatted examples. - Added strfromd(3) to SEE ALSO of atof(3), printf(3), and strtod(3). Wainer dos Santos Moschetta (6): Add strfromd.3 strfromf.3: add link to strfromd(3) strfroml.3: add link to strfromd(3) atof.3: SEE ALSO: add strfromd(3) printf.3: SEE ALSO: add strfromd(3) strtod.3: SEE ALSO: add strfromd(3) man3/atof.3 | 1 + man3/printf.3 | 1 + man3/strfromd.3 | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ man3/strfromf.3 | 1 + man3/strfroml.3 | 1 + man3/strtod.3 | 1 + 6 files changed, 260 insertions(+) create mode 100644 man3/strfromd.3 create mode 100644 man3/strfromf.3 create mode 100644 man3/strfroml.3 -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* [PATCH v2 1/6] Add strfromd.3 [not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2016-12-05 18:30 ` Wainer dos Santos Moschetta [not found] ` <22cf57d5501526616e3f63d00102ce7cbf7e7287.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2016-12-05 18:30 ` [PATCH v2 2/6] strfromf.3: add link to strfromd(3) Wainer dos Santos Moschetta ` (4 subsequent siblings) 5 siblings, 1 reply; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-05 18:30 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA The ISO/IEC TS 18661-1 specifies the strfrom() class of functions that convert a float-point value to string. The strfromd(), strfromf(), and strfroml() functions are introduced (commit 6962682ffe5e) in GNU C Library 2.25. Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strfromd.3 | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 255 insertions(+) create mode 100644 man3/strfromd.3 diff --git a/man3/strfromd.3 b/man3/strfromd.3 new file mode 100644 index 0000000..4b1aced --- /dev/null +++ b/man3/strfromd.3 @@ -0,0 +1,255 @@ +.\" Copyright (c) 2016, IBM Corporation. +.\" Written by Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> +.\" +.\" %%%LICENSE_START(VERBATIM) +.\" Permission is granted to make and distribute verbatim copies of this +.\" manual provided the copyright notice and this permission notice are +.\" preserved on all copies. +.\" +.\" Permission is granted to copy and distribute modified versions of +.\" this manual under the conditions for verbatim copying, provided that +.\" the entire resulting derived work is distributed under the terms of +.\" a permission notice identical to this one. +.\" +.\" Since the Linux kernel and libraries are constantly changing, this +.\" manual page may be incorrect or out-of-date. The author(s) assume. +.\" no responsibility for errors or omissions, or for damages resulting. +.\" from the use of the information contained herein. The author(s) may. +.\" not have taken the same level of care in the production of this. +.\" manual, which is licensed free of charge, as they might when working. +.\" professionally. +.\" +.\" Formatted or processed versions of this manual, if unaccompanied by +.\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END +.\" +.\" References consulted: +.\" Glibc 2.25 source code and manual. +.\" C99 standard document. +.\" ISO/IEC TS 18661-1 technical specification. +.\" snprintf and other man.3 pages. +.\" +.TH STRFROMD 3 2016-12-02 "GNU C Library" +.SH NAME +strfromd, strfromf, strfroml \- convert a floating-point value into +a string. +.SH SYNOPSIS +.B #include <stdlib.h> +.sp +.BI "int strfromd (char *restrict " str ", size_t " n ", +.br +.BI " const char *restrict " format ", double " fp ");" +.br +.BI "int strfromf (char *restrict " str ", size_t " n ", +.br +.BI " const char *restrict " format ", float "fp ");" +.br +.BI "int strfroml (char *restrict " str ", size_t " n ", +.br +.BI " const char *restrict " format ", long double " fp ");" +.sp +.in -4 +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR strfromd (), +.BR strfromf (), +.BR strfroml (): +.RS 4 +__STDC_WANT_IEC_60559_BFP_EXT__ +.RE +.ad b +.SH DESCRIPTION +The +.BR strfrom () +class of functions converts a floating-point value +.I fp +into a string of characters +.IR str , +with a configurable +.IR format +string. +At most +.I n +characters are stored into +.IR str . +.sp +The terminating null character ('\\0') is written if and only if +.I n +is sufficiently large, otherwise the written string is truncated at +.I n +characters. +.sp +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions are equivalent to +.sp +.in +4 +.BI "snprintf (str, n, format, fp)" +.in +.sp +except for the +.I format +string. +.SS Format of the format string +The +.I format +string must start with the character %. +This is followed by an optional precision which starts with period +character (.), followed by an optional decimal integer. +If no integer is specified after the period character, the precision used +is zero. +Finally, it should have one of the conversion specifiers +.BR a , +.BR A , +.BR e , +.BR E , +.BR f , +.BR F , +.BR g , +or +.BR G . +.sp +The conversion specifier is applied based on the floating-point type +indicated by the function suffix. +Therefore, unlike +.BR snprintf (), +the format string does not have a length modifier character. +See +.BR snprintf (3) +for a detailed description of these conversion specifiers. +.sp +The implementation conforms to the C99 standard on conversion of NaN and +infinity values: +.sp +.in +4 +If +.I fp +is a NaN, +NaN, or -NaN, and +.BR f +(or +.BR a , +.BR e , +.BR g ) +is the conversion specifier, the conversion is to "nan", "nan", or "-nan", +respectively. +If +.B F +(or +.BR A , +.BR E , +.BR G ) +is the conversion specifier, the conversion is to "NAN" or "-NAN". +.sp +Likewise if +.I fp +is infinity, it is converted to [-]inf or [-]INF. +.in +.sp +A malformed +.I format +string results in undefined behavior. +.SH RETURN VALUE +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions return the number of characters that would have been written in +.I str +if +.I n +had enough space, +not counting the terminating null character. +Thus, a return value of +.I n +or greater means that the output was truncated. +.SH VERSIONS +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions are available in glibc since version 2.25. +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7) +and the +.B POSIX Safety Concepts +section in GNU C Library manual. +.sp +.TS +allbox; +lb lb lb +l l l. +Interface Attribute Value +T{ +.BR strfromd (), +.BR strfromf (), +.BR strfroml () +T} Thread safety MT-Safe locale +\^ Asynchronous signal safety AS-Unsafe heap +\^ Asynchronous cancellation safety AC-Unsafe mem +.TE +.sp +Note: these attributes are preliminary. +.SH CONFORMING TO +C99, ISO/IEC TS 18661-1. +.SH NOTES +The behavior of +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions depends on the +.B LC_NUMERIC +category of the current locale. + +.SH EXAMPLES +To convert the value 12.1 as a float type to a string using decimal +notation, resulting in "12.100000": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char *s = (char *) malloc(ssize); +strfromf(s, ssize, "%f", 12.1); +.fi +.in +.sp +To convert the value 12.3456 as a float type to a string using +decimal notation with two digits of precision, resulting in "12.35": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char *s = (char *) malloc(ssize); +strfromf(s, ssize, "%.2f", 12.3456); +.fi +.in +.sp +To convert the value 12.345e19 as a double type to a string using +scientific notation with zero digits of precision, resulting in "1E+20": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char *s = (char *) malloc(ssize); +strfromd(s, ssize, "%.E", 12.345e19); +.fi +.in +.SH SEE ALSO +.BR atof (3), +.BR snprintf (3), +.BR strtod (3) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
[parent not found: <22cf57d5501526616e3f63d00102ce7cbf7e7287.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH v2 1/6] Add strfromd.3 [not found] ` <22cf57d5501526616e3f63d00102ce7cbf7e7287.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2016-12-05 22:29 ` Michael Kerrisk (man-pages) [not found] ` <bf67bf0f-0ac8-9d88-3a07-3f705e1f743e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 21+ messages in thread From: Michael Kerrisk (man-pages) @ 2016-12-05 22:29 UTC (permalink / raw) To: Wainer dos Santos Moschetta Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Hello Wainer, Just a few more questions and comments. On 12/05/2016 07:30 PM, Wainer dos Santos Moschetta wrote: > The ISO/IEC TS 18661-1 specifies the strfrom() class > of functions that convert a float-point value to string. > > The strfromd(), strfromf(), and strfroml() functions are > introduced (commit 6962682ffe5e) in GNU C Library 2.25. > > Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > --- > man3/strfromd.3 | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 255 insertions(+) > create mode 100644 man3/strfromd.3 > > diff --git a/man3/strfromd.3 b/man3/strfromd.3 > new file mode 100644 > index 0000000..4b1aced > --- /dev/null > +++ b/man3/strfromd.3 > @@ -0,0 +1,255 @@ > +.\" Copyright (c) 2016, IBM Corporation. > +.\" Written by Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > +.\" > +.\" %%%LICENSE_START(VERBATIM) > +.\" Permission is granted to make and distribute verbatim copies of this > +.\" manual provided the copyright notice and this permission notice are > +.\" preserved on all copies. > +.\" > +.\" Permission is granted to copy and distribute modified versions of > +.\" this manual under the conditions for verbatim copying, provided that > +.\" the entire resulting derived work is distributed under the terms of > +.\" a permission notice identical to this one. > +.\" > +.\" Since the Linux kernel and libraries are constantly changing, this > +.\" manual page may be incorrect or out-of-date. The author(s) assume. > +.\" no responsibility for errors or omissions, or for damages resulting. > +.\" from the use of the information contained herein. The author(s) may. > +.\" not have taken the same level of care in the production of this. > +.\" manual, which is licensed free of charge, as they might when working. > +.\" professionally. > +.\" > +.\" Formatted or processed versions of this manual, if unaccompanied by > +.\" the source, must acknowledge the copyright and authors of this work. > +.\" %%%LICENSE_END > +.\" > +.\" References consulted: > +.\" Glibc 2.25 source code and manual. > +.\" C99 standard document. > +.\" ISO/IEC TS 18661-1 technical specification. > +.\" snprintf and other man.3 pages. > +.\" > +.TH STRFROMD 3 2016-12-02 "GNU C Library" > +.SH NAME > +strfromd, strfromf, strfroml \- convert a floating-point value into > +a string. > +.SH SYNOPSIS > +.B #include <stdlib.h> > +.sp > +.BI "int strfromd (char *restrict " str ", size_t " n ", > +.br > +.BI " const char *restrict " format ", double " fp ");" > +.br > +.BI "int strfromf (char *restrict " str ", size_t " n ", > +.br > +.BI " const char *restrict " format ", float "fp ");" > +.br > +.BI "int strfroml (char *restrict " str ", size_t " n ", > +.br > +.BI " const char *restrict " format ", long double " fp ");" > +.sp > +.in -4 > +Feature Test Macro Requirements for glibc (see > +.BR feature_test_macros (7)): > +.in > +.sp > +.ad l > +.BR strfromd (), > +.BR strfromf (), > +.BR strfroml (): > +.RS 4 > +__STDC_WANT_IEC_60559_BFP_EXT__ > +.RE > +.ad b > +.SH DESCRIPTION > +The > +.BR strfrom () > +class of functions converts a floating-point value > +.I fp > +into a string of characters > +.IR str , > +with a configurable > +.IR format > +string. > +At most > +.I n > +characters are stored into > +.IR str . > +.sp > +The terminating null character ('\\0') is written if and only if > +.I n > +is sufficiently large, otherwise the written string is truncated at > +.I n > +characters. > +.sp > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions are equivalent to > +.sp > +.in +4 > +.BI "snprintf (str, n, format, fp)" > +.in > +.sp > +except for the > +.I format > +string. > +.SS Format of the format string > +The > +.I format > +string must start with the character %. > +This is followed by an optional precision which starts with period > +character (.), followed by an optional decimal integer. > +If no integer is specified after the period character, the precision used > +is zero. > +Finally, it should have one of the conversion specifiers > +.BR a , > +.BR A , > +.BR e , > +.BR E , > +.BR f , > +.BR F , > +.BR g , > +or > +.BR G . > +.sp > +The conversion specifier is applied based on the floating-point type > +indicated by the function suffix. > +Therefore, unlike > +.BR snprintf (), > +the format string does not have a length modifier character. > +See > +.BR snprintf (3) > +for a detailed description of these conversion specifiers. > +.sp > +The implementation conforms to the C99 standard on conversion of NaN and > +infinity values: > +.sp > +.in +4 > +If > +.I fp > +is a NaN, +NaN, or -NaN, and > +.BR f > +(or > +.BR a , > +.BR e , > +.BR g ) > +is the conversion specifier, the conversion is to "nan", "nan", or "-nan", > +respectively. > +If > +.B F > +(or > +.BR A , > +.BR E , > +.BR G ) > +is the conversion specifier, the conversion is to "NAN" or "-NAN". > +.sp > +Likewise if > +.I fp > +is infinity, it is converted to [-]inf or [-]INF. > +.in > +.sp > +A malformed > +.I format > +string results in undefined behavior. > +.SH RETURN VALUE > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions return the number of characters that would have been written in > +.I str > +if > +.I n > +had enough space, > +not counting the terminating null character. > +Thus, a return value of > +.I n > +or greater means that the output was truncated. > +.SH VERSIONS > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions are available in glibc since version 2.25. > +.SH ATTRIBUTES > +For an explanation of the terms used in this section, see > +.BR attributes (7) > +and the > +.B POSIX Safety Concepts > +section in GNU C Library manual. > +.sp > +.TS > +allbox; > +lb lb lb > +l l l. > +Interface Attribute Value > +T{ > +.BR strfromd (), > +.BR strfromf (), > +.BR strfroml () > +T} Thread safety MT-Safe locale > +\^ Asynchronous signal safety AS-Unsafe heap > +\^ Asynchronous cancellation safety AC-Unsafe mem > +.TE > +.sp > +Note: these attributes are preliminary. > +.SH CONFORMING TO > +C99, ISO/IEC TS 18661-1. > +.SH NOTES > +The behavior of > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions depends on the Is not s/depends on/take account of/ more accurate? > +.B LC_NUMERIC > +category of the current locale. > + > +.SH EXAMPLES > +To convert the value 12.1 as a float type to a string using decimal > +notation, resulting in "12.100000":q > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char *s = (char *) malloc(ssize); Why do you use malloc() in these examples, rather than just using (say) a char[10]? (Sorry, I should have asked this before...) > +strfromf(s, ssize, "%f", 12.1); > +.fi > +.in > +.sp > +To convert the value 12.3456 as a float type to a string using > +decimal notation with two digits of precision, resulting in "12.35": > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char *s = (char *) malloc(ssize); > +strfromf(s, ssize, "%.2f", 12.3456); > +.fi > +.in > +.sp > +To convert the value 12.345e19 as a double type to a string using > +scientific notation with zero digits of precision, resulting in "1E+20": > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char *s = (char *) malloc(ssize); > +strfromd(s, ssize, "%.E", 12.345e19); > +.fi > +.in > +.SH SEE ALSO > +.BR atof (3), > +.BR snprintf (3), > +.BR strtod (3) Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <bf67bf0f-0ac8-9d88-3a07-3f705e1f743e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH v2 1/6] Add strfromd.3 [not found] ` <bf67bf0f-0ac8-9d88-3a07-3f705e1f743e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-12-06 12:49 ` Wainer S. Moschetta 2016-12-07 12:54 ` [PATCH v3 0/6] Add strfromd.3: changelog Wainer dos Santos Moschetta 1 sibling, 0 replies; 21+ messages in thread From: Wainer S. Moschetta @ 2016-12-06 12:49 UTC (permalink / raw) To: Michael Kerrisk (man-pages) Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Hi Michael, Thanks for your very good review. See answers below. On 12/05/2016 08:29 PM, Michael Kerrisk (man-pages) wrote: > Hello Wainer, > > Just a few more questions and comments. > > On 12/05/2016 07:30 PM, Wainer dos Santos Moschetta wrote: >> The ISO/IEC TS 18661-1 specifies the strfrom() class >> of functions that convert a float-point value to string. >> >> The strfromd(), strfromf(), and strfroml() functions are >> introduced (commit 6962682ffe5e) in GNU C Library 2.25. >> >> Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> >> --- >> man3/strfromd.3 | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 255 insertions(+) >> create mode 100644 man3/strfromd.3 >> >> diff --git a/man3/strfromd.3 b/man3/strfromd.3 >> new file mode 100644 >> index 0000000..4b1aced >> --- /dev/null >> +++ b/man3/strfromd.3 >> @@ -0,0 +1,255 @@ >> +.\" Copyright (c) 2016, IBM Corporation. >> +.\" Written by Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> >> +.\" >> +.\" %%%LICENSE_START(VERBATIM) >> +.\" Permission is granted to make and distribute verbatim copies of this >> +.\" manual provided the copyright notice and this permission notice are >> +.\" preserved on all copies. >> +.\" >> +.\" Permission is granted to copy and distribute modified versions of >> +.\" this manual under the conditions for verbatim copying, provided that >> +.\" the entire resulting derived work is distributed under the terms of >> +.\" a permission notice identical to this one. >> +.\" >> +.\" Since the Linux kernel and libraries are constantly changing, this >> +.\" manual page may be incorrect or out-of-date. The author(s) assume. >> +.\" no responsibility for errors or omissions, or for damages resulting. >> +.\" from the use of the information contained herein. The author(s) may. >> +.\" not have taken the same level of care in the production of this. >> +.\" manual, which is licensed free of charge, as they might when working. >> +.\" professionally. >> +.\" >> +.\" Formatted or processed versions of this manual, if unaccompanied by >> +.\" the source, must acknowledge the copyright and authors of this work. >> +.\" %%%LICENSE_END >> +.\" >> +.\" References consulted: >> +.\" Glibc 2.25 source code and manual. >> +.\" C99 standard document. >> +.\" ISO/IEC TS 18661-1 technical specification. >> +.\" snprintf and other man.3 pages. >> +.\" >> +.TH STRFROMD 3 2016-12-02 "GNU C Library" >> +.SH NAME >> +strfromd, strfromf, strfroml \- convert a floating-point value into >> +a string. >> +.SH SYNOPSIS >> +.B #include <stdlib.h> >> +.sp >> +.BI "int strfromd (char *restrict " str ", size_t " n ", >> +.br >> +.BI " const char *restrict " format ", double " fp ");" >> +.br >> +.BI "int strfromf (char *restrict " str ", size_t " n ", >> +.br >> +.BI " const char *restrict " format ", float "fp ");" >> +.br >> +.BI "int strfroml (char *restrict " str ", size_t " n ", >> +.br >> +.BI " const char *restrict " format ", long double " fp ");" >> +.sp >> +.in -4 >> +Feature Test Macro Requirements for glibc (see >> +.BR feature_test_macros (7)): >> +.in >> +.sp >> +.ad l >> +.BR strfromd (), >> +.BR strfromf (), >> +.BR strfroml (): >> +.RS 4 >> +__STDC_WANT_IEC_60559_BFP_EXT__ >> +.RE >> +.ad b >> +.SH DESCRIPTION >> +The >> +.BR strfrom () >> +class of functions converts a floating-point value >> +.I fp >> +into a string of characters >> +.IR str , >> +with a configurable >> +.IR format >> +string. >> +At most >> +.I n >> +characters are stored into >> +.IR str . >> +.sp >> +The terminating null character ('\\0') is written if and only if >> +.I n >> +is sufficiently large, otherwise the written string is truncated at >> +.I n >> +characters. >> +.sp >> +The >> +.BR strfromd (), >> +.BR strfromf (), >> +and >> +.BR strfroml () >> +functions are equivalent to >> +.sp >> +.in +4 >> +.BI "snprintf (str, n, format, fp)" >> +.in >> +.sp >> +except for the >> +.I format >> +string. >> +.SS Format of the format string >> +The >> +.I format >> +string must start with the character %. >> +This is followed by an optional precision which starts with period >> +character (.), followed by an optional decimal integer. >> +If no integer is specified after the period character, the precision used >> +is zero. >> +Finally, it should have one of the conversion specifiers >> +.BR a , >> +.BR A , >> +.BR e , >> +.BR E , >> +.BR f , >> +.BR F , >> +.BR g , >> +or >> +.BR G . >> +.sp >> +The conversion specifier is applied based on the floating-point type >> +indicated by the function suffix. >> +Therefore, unlike >> +.BR snprintf (), >> +the format string does not have a length modifier character. >> +See >> +.BR snprintf (3) >> +for a detailed description of these conversion specifiers. >> +.sp >> +The implementation conforms to the C99 standard on conversion of NaN and >> +infinity values: >> +.sp >> +.in +4 >> +If >> +.I fp >> +is a NaN, +NaN, or -NaN, and >> +.BR f >> +(or >> +.BR a , >> +.BR e , >> +.BR g ) >> +is the conversion specifier, the conversion is to "nan", "nan", or "-nan", >> +respectively. >> +If >> +.B F >> +(or >> +.BR A , >> +.BR E , >> +.BR G ) >> +is the conversion specifier, the conversion is to "NAN" or "-NAN". >> +.sp >> +Likewise if >> +.I fp >> +is infinity, it is converted to [-]inf or [-]INF. >> +.in >> +.sp >> +A malformed >> +.I format >> +string results in undefined behavior. >> +.SH RETURN VALUE >> +The >> +.BR strfromd (), >> +.BR strfromf (), >> +and >> +.BR strfroml () >> +functions return the number of characters that would have been written in >> +.I str >> +if >> +.I n >> +had enough space, >> +not counting the terminating null character. >> +Thus, a return value of >> +.I n >> +or greater means that the output was truncated. >> +.SH VERSIONS >> +The >> +.BR strfromd (), >> +.BR strfromf (), >> +and >> +.BR strfroml () >> +functions are available in glibc since version 2.25. >> +.SH ATTRIBUTES >> +For an explanation of the terms used in this section, see >> +.BR attributes (7) >> +and the >> +.B POSIX Safety Concepts >> +section in GNU C Library manual. >> +.sp >> +.TS >> +allbox; >> +lb lb lb >> +l l l. >> +Interface Attribute Value >> +T{ >> +.BR strfromd (), >> +.BR strfromf (), >> +.BR strfroml () >> +T} Thread safety MT-Safe locale >> +\^ Asynchronous signal safety AS-Unsafe heap >> +\^ Asynchronous cancellation safety AC-Unsafe mem >> +.TE >> +.sp >> +Note: these attributes are preliminary. >> +.SH CONFORMING TO >> +C99, ISO/IEC TS 18661-1. >> +.SH NOTES >> +The behavior of >> +.BR strfromd (), >> +.BR strfromf (), >> +and >> +.BR strfroml () >> +functions depends on the > Is not s/depends on/take account of/ more accurate? Yes, it does. I will send a v3 patch with this change. > >> +.B LC_NUMERIC >> +category of the current locale. >> + >> +.SH EXAMPLES >> +To convert the value 12.1 as a float type to a string using decimal >> +notation, resulting in "12.100000":q >> +.sp >> +.in +4 >> +.nf >> +#define __STDC_WANT_IEC_60559_BFP_EXT__ >> +#include <stdlib.h> >> +int ssize = 10; >> +char *s = (char *) malloc(ssize); > Why do you use malloc() in these examples, rather than just > using (say) a char[10]? (Sorry, I should have asked this before...) For no specific reason. I've a simple program that uses malloc, checked some of strfrom* features using it. Indeed, using char[10] simplifies the example. I will change it on patch v3 too. > >> +strfromf(s, ssize, "%f", 12.1); >> +.fi >> +.in >> +.sp >> +To convert the value 12.3456 as a float type to a string using >> +decimal notation with two digits of precision, resulting in "12.35": >> +.sp >> +.in +4 >> +.nf >> +#define __STDC_WANT_IEC_60559_BFP_EXT__ >> +#include <stdlib.h> >> +int ssize = 10; >> +char *s = (char *) malloc(ssize); >> +strfromf(s, ssize, "%.2f", 12.3456); >> +.fi >> +.in >> +.sp >> +To convert the value 12.345e19 as a double type to a string using >> +scientific notation with zero digits of precision, resulting in "1E+20": >> +.sp >> +.in +4 >> +.nf >> +#define __STDC_WANT_IEC_60559_BFP_EXT__ >> +#include <stdlib.h> >> +int ssize = 10; >> +char *s = (char *) malloc(ssize); >> +strfromd(s, ssize, "%.E", 12.345e19); >> +.fi >> +.in >> +.SH SEE ALSO >> +.BR atof (3), >> +.BR snprintf (3), >> +.BR strtod (3) > > Cheers, > > Michael > > -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH v3 0/6] Add strfromd.3: changelog [not found] ` <bf67bf0f-0ac8-9d88-3a07-3f705e1f743e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-12-06 12:49 ` Wainer S. Moschetta @ 2016-12-07 12:54 ` Wainer dos Santos Moschetta [not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 1 sibling, 1 reply; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-07 12:54 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA This patch set has following changes since v2: - In EXAMPLES, replaced use of malloc with char[ssize] - In NOTES, s/depends on/take account of Wainer dos Santos Moschetta (6): Add strfromd.3 strfromf.3: add link to strfromd(3) strfroml.3: add link to strfromd(3) atof.3: SEE ALSO: add strfromd(3) printf.3: SEE ALSO: add strfromd(3) strtod.3: SEE ALSO: add strfromd(3) man3/atof.3 | 1 + man3/printf.3 | 1 + man3/strfromd.3 | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ man3/strfromf.3 | 1 + man3/strfroml.3 | 1 + man3/strtod.3 | 1 + 6 files changed, 260 insertions(+) create mode 100644 man3/strfromd.3 create mode 100644 man3/strfromf.3 create mode 100644 man3/strfroml.3 -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* [PATCH v3 1/6] Add strfromd.3 [not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2016-12-07 12:54 ` Wainer dos Santos Moschetta [not found] ` <2e277803abb58cd3d15ff5d26d667ac095df2562.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2016-12-07 12:54 ` [PATCH v3 2/6] strfromf.3: add link to strfromd(3) Wainer dos Santos Moschetta ` (4 subsequent siblings) 5 siblings, 1 reply; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-07 12:54 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA The ISO/IEC TS 18661-1 specifies the strfrom() class of functions that convert a float-point value to string. The strfromd(), strfromf(), and strfroml() functions are introduced (commit 6962682ffe5e) in GNU C Library 2.25. Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strfromd.3 | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 255 insertions(+) create mode 100644 man3/strfromd.3 diff --git a/man3/strfromd.3 b/man3/strfromd.3 new file mode 100644 index 0000000..ea3b140 --- /dev/null +++ b/man3/strfromd.3 @@ -0,0 +1,255 @@ +.\" Copyright (c) 2016, IBM Corporation. +.\" Written by Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> +.\" +.\" %%%LICENSE_START(VERBATIM) +.\" Permission is granted to make and distribute verbatim copies of this +.\" manual provided the copyright notice and this permission notice are +.\" preserved on all copies. +.\" +.\" Permission is granted to copy and distribute modified versions of +.\" this manual under the conditions for verbatim copying, provided that +.\" the entire resulting derived work is distributed under the terms of +.\" a permission notice identical to this one. +.\" +.\" Since the Linux kernel and libraries are constantly changing, this +.\" manual page may be incorrect or out-of-date. The author(s) assume. +.\" no responsibility for errors or omissions, or for damages resulting. +.\" from the use of the information contained herein. The author(s) may. +.\" not have taken the same level of care in the production of this. +.\" manual, which is licensed free of charge, as they might when working. +.\" professionally. +.\" +.\" Formatted or processed versions of this manual, if unaccompanied by +.\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END +.\" +.\" References consulted: +.\" Glibc 2.25 source code and manual. +.\" C99 standard document. +.\" ISO/IEC TS 18661-1 technical specification. +.\" snprintf and other man.3 pages. +.\" +.TH STRFROMD 3 2016-12-02 "GNU C Library" +.SH NAME +strfromd, strfromf, strfroml \- convert a floating-point value into +a string. +.SH SYNOPSIS +.B #include <stdlib.h> +.sp +.BI "int strfromd (char *restrict " str ", size_t " n ", +.br +.BI " const char *restrict " format ", double " fp ");" +.br +.BI "int strfromf (char *restrict " str ", size_t " n ", +.br +.BI " const char *restrict " format ", float "fp ");" +.br +.BI "int strfroml (char *restrict " str ", size_t " n ", +.br +.BI " const char *restrict " format ", long double " fp ");" +.sp +.in -4 +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR strfromd (), +.BR strfromf (), +.BR strfroml (): +.RS 4 +__STDC_WANT_IEC_60559_BFP_EXT__ +.RE +.ad b +.SH DESCRIPTION +The +.BR strfrom () +class of functions converts a floating-point value +.I fp +into a string of characters +.IR str , +with a configurable +.IR format +string. +At most +.I n +characters are stored into +.IR str . +.sp +The terminating null character ('\\0') is written if and only if +.I n +is sufficiently large, otherwise the written string is truncated at +.I n +characters. +.sp +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions are equivalent to +.sp +.in +4 +.BI "snprintf (str, n, format, fp)" +.in +.sp +except for the +.I format +string. +.SS Format of the format string +The +.I format +string must start with the character %. +This is followed by an optional precision which starts with period +character (.), followed by an optional decimal integer. +If no integer is specified after the period character, the precision used +is zero. +Finally, it should have one of the conversion specifiers +.BR a , +.BR A , +.BR e , +.BR E , +.BR f , +.BR F , +.BR g , +or +.BR G . +.sp +The conversion specifier is applied based on the floating-point type +indicated by the function suffix. +Therefore, unlike +.BR snprintf (), +the format string does not have a length modifier character. +See +.BR snprintf (3) +for a detailed description of these conversion specifiers. +.sp +The implementation conforms to the C99 standard on conversion of NaN and +infinity values: +.sp +.in +4 +If +.I fp +is a NaN, +NaN, or -NaN, and +.BR f +(or +.BR a , +.BR e , +.BR g ) +is the conversion specifier, the conversion is to "nan", "nan", or "-nan", +respectively. +If +.B F +(or +.BR A , +.BR E , +.BR G ) +is the conversion specifier, the conversion is to "NAN" or "-NAN". +.sp +Likewise if +.I fp +is infinity, it is converted to [-]inf or [-]INF. +.in +.sp +A malformed +.I format +string results in undefined behavior. +.SH RETURN VALUE +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions return the number of characters that would have been written in +.I str +if +.I n +had enough space, +not counting the terminating null character. +Thus, a return value of +.I n +or greater means that the output was truncated. +.SH VERSIONS +The +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions are available in glibc since version 2.25. +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7) +and the +.B POSIX Safety Concepts +section in GNU C Library manual. +.sp +.TS +allbox; +lb lb lb +l l l. +Interface Attribute Value +T{ +.BR strfromd (), +.BR strfromf (), +.BR strfroml () +T} Thread safety MT-Safe locale +\^ Asynchronous signal safety AS-Unsafe heap +\^ Asynchronous cancellation safety AC-Unsafe mem +.TE +.sp +Note: these attributes are preliminary. +.SH CONFORMING TO +C99, ISO/IEC TS 18661-1. +.SH NOTES +The behavior of +.BR strfromd (), +.BR strfromf (), +and +.BR strfroml () +functions take account of the +.B LC_NUMERIC +category of the current locale. + +.SH EXAMPLES +To convert the value 12.1 as a float type to a string using decimal +notation, resulting in "12.100000": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char s[ssize]; +strfromf(s, ssize, "%f", 12.1); +.fi +.in +.sp +To convert the value 12.3456 as a float type to a string using +decimal notation with two digits of precision, resulting in "12.35": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char s[ssize]; +strfromf(s, ssize, "%.2f", 12.3456); +.fi +.in +.sp +To convert the value 12.345e19 as a double type to a string using +scientific notation with zero digits of precision, resulting in "1E+20": +.sp +.in +4 +.nf +#define __STDC_WANT_IEC_60559_BFP_EXT__ +#include <stdlib.h> +int ssize = 10; +char s[ssize]; +strfromd(s, ssize, "%.E", 12.345e19); +.fi +.in +.SH SEE ALSO +.BR atof (3), +.BR snprintf (3), +.BR strtod (3) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
[parent not found: <2e277803abb58cd3d15ff5d26d667ac095df2562.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH v3 1/6] Add strfromd.3 [not found] ` <2e277803abb58cd3d15ff5d26d667ac095df2562.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> @ 2016-12-07 15:51 ` Michael Kerrisk (man-pages) 0 siblings, 0 replies; 21+ messages in thread From: Michael Kerrisk (man-pages) @ 2016-12-07 15:51 UTC (permalink / raw) To: Wainer dos Santos Moschetta Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Hello Wainer, On 12/07/2016 01:54 PM, Wainer dos Santos Moschetta wrote: > The ISO/IEC TS 18661-1 specifies the strfrom() class > of functions that convert a float-point value to string. > > The strfromd(), strfromf(), and strfroml() functions are > introduced (commit 6962682ffe5e) in GNU C Library 2.25. Thanks for the excellent page, and the very easy process of working with you![*] I have applied the v3 series of patches and pushed to Git. Cheers, Michael [*] If you get tempted to document some of those other new functions in glibc 2.25, by all means give in to the temptation :-). > Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > --- > man3/strfromd.3 | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 255 insertions(+) > create mode 100644 man3/strfromd.3 > > diff --git a/man3/strfromd.3 b/man3/strfromd.3 > new file mode 100644 > index 0000000..ea3b140 > --- /dev/null > +++ b/man3/strfromd.3 > @@ -0,0 +1,255 @@ > +.\" Copyright (c) 2016, IBM Corporation. > +.\" Written by Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> > +.\" > +.\" %%%LICENSE_START(VERBATIM) > +.\" Permission is granted to make and distribute verbatim copies of this > +.\" manual provided the copyright notice and this permission notice are > +.\" preserved on all copies. > +.\" > +.\" Permission is granted to copy and distribute modified versions of > +.\" this manual under the conditions for verbatim copying, provided that > +.\" the entire resulting derived work is distributed under the terms of > +.\" a permission notice identical to this one. > +.\" > +.\" Since the Linux kernel and libraries are constantly changing, this > +.\" manual page may be incorrect or out-of-date. The author(s) assume. > +.\" no responsibility for errors or omissions, or for damages resulting. > +.\" from the use of the information contained herein. The author(s) may. > +.\" not have taken the same level of care in the production of this. > +.\" manual, which is licensed free of charge, as they might when working. > +.\" professionally. > +.\" > +.\" Formatted or processed versions of this manual, if unaccompanied by > +.\" the source, must acknowledge the copyright and authors of this work. > +.\" %%%LICENSE_END > +.\" > +.\" References consulted: > +.\" Glibc 2.25 source code and manual. > +.\" C99 standard document. > +.\" ISO/IEC TS 18661-1 technical specification. > +.\" snprintf and other man.3 pages. > +.\" > +.TH STRFROMD 3 2016-12-02 "GNU C Library" > +.SH NAME > +strfromd, strfromf, strfroml \- convert a floating-point value into > +a string. > +.SH SYNOPSIS > +.B #include <stdlib.h> > +.sp > +.BI "int strfromd (char *restrict " str ", size_t " n ", > +.br > +.BI " const char *restrict " format ", double " fp ");" > +.br > +.BI "int strfromf (char *restrict " str ", size_t " n ", > +.br > +.BI " const char *restrict " format ", float "fp ");" > +.br > +.BI "int strfroml (char *restrict " str ", size_t " n ", > +.br > +.BI " const char *restrict " format ", long double " fp ");" > +.sp > +.in -4 > +Feature Test Macro Requirements for glibc (see > +.BR feature_test_macros (7)): > +.in > +.sp > +.ad l > +.BR strfromd (), > +.BR strfromf (), > +.BR strfroml (): > +.RS 4 > +__STDC_WANT_IEC_60559_BFP_EXT__ > +.RE > +.ad b > +.SH DESCRIPTION > +The > +.BR strfrom () > +class of functions converts a floating-point value > +.I fp > +into a string of characters > +.IR str , > +with a configurable > +.IR format > +string. > +At most > +.I n > +characters are stored into > +.IR str . > +.sp > +The terminating null character ('\\0') is written if and only if > +.I n > +is sufficiently large, otherwise the written string is truncated at > +.I n > +characters. > +.sp > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions are equivalent to > +.sp > +.in +4 > +.BI "snprintf (str, n, format, fp)" > +.in > +.sp > +except for the > +.I format > +string. > +.SS Format of the format string > +The > +.I format > +string must start with the character %. > +This is followed by an optional precision which starts with period > +character (.), followed by an optional decimal integer. > +If no integer is specified after the period character, the precision used > +is zero. > +Finally, it should have one of the conversion specifiers > +.BR a , > +.BR A , > +.BR e , > +.BR E , > +.BR f , > +.BR F , > +.BR g , > +or > +.BR G . > +.sp > +The conversion specifier is applied based on the floating-point type > +indicated by the function suffix. > +Therefore, unlike > +.BR snprintf (), > +the format string does not have a length modifier character. > +See > +.BR snprintf (3) > +for a detailed description of these conversion specifiers. > +.sp > +The implementation conforms to the C99 standard on conversion of NaN and > +infinity values: > +.sp > +.in +4 > +If > +.I fp > +is a NaN, +NaN, or -NaN, and > +.BR f > +(or > +.BR a , > +.BR e , > +.BR g ) > +is the conversion specifier, the conversion is to "nan", "nan", or "-nan", > +respectively. > +If > +.B F > +(or > +.BR A , > +.BR E , > +.BR G ) > +is the conversion specifier, the conversion is to "NAN" or "-NAN". > +.sp > +Likewise if > +.I fp > +is infinity, it is converted to [-]inf or [-]INF. > +.in > +.sp > +A malformed > +.I format > +string results in undefined behavior. > +.SH RETURN VALUE > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions return the number of characters that would have been written in > +.I str > +if > +.I n > +had enough space, > +not counting the terminating null character. > +Thus, a return value of > +.I n > +or greater means that the output was truncated. > +.SH VERSIONS > +The > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions are available in glibc since version 2.25. > +.SH ATTRIBUTES > +For an explanation of the terms used in this section, see > +.BR attributes (7) > +and the > +.B POSIX Safety Concepts > +section in GNU C Library manual. > +.sp > +.TS > +allbox; > +lb lb lb > +l l l. > +Interface Attribute Value > +T{ > +.BR strfromd (), > +.BR strfromf (), > +.BR strfroml () > +T} Thread safety MT-Safe locale > +\^ Asynchronous signal safety AS-Unsafe heap > +\^ Asynchronous cancellation safety AC-Unsafe mem > +.TE > +.sp > +Note: these attributes are preliminary. > +.SH CONFORMING TO > +C99, ISO/IEC TS 18661-1. > +.SH NOTES > +The behavior of > +.BR strfromd (), > +.BR strfromf (), > +and > +.BR strfroml () > +functions take account of the > +.B LC_NUMERIC > +category of the current locale. > + > +.SH EXAMPLES > +To convert the value 12.1 as a float type to a string using decimal > +notation, resulting in "12.100000": > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char s[ssize]; > +strfromf(s, ssize, "%f", 12.1); > +.fi > +.in > +.sp > +To convert the value 12.3456 as a float type to a string using > +decimal notation with two digits of precision, resulting in "12.35": > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char s[ssize]; > +strfromf(s, ssize, "%.2f", 12.3456); > +.fi > +.in > +.sp > +To convert the value 12.345e19 as a double type to a string using > +scientific notation with zero digits of precision, resulting in "1E+20": > +.sp > +.in +4 > +.nf > +#define __STDC_WANT_IEC_60559_BFP_EXT__ > +#include <stdlib.h> > +int ssize = 10; > +char s[ssize]; > +strfromd(s, ssize, "%.E", 12.345e19); > +.fi > +.in > +.SH SEE ALSO > +.BR atof (3), > +.BR snprintf (3), > +.BR strtod (3) > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH v3 2/6] strfromf.3: add link to strfromd(3) [not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2016-12-07 12:54 ` [PATCH v3 1/6] Add strfromd.3 Wainer dos Santos Moschetta @ 2016-12-07 12:54 ` Wainer dos Santos Moschetta 2016-12-07 12:54 ` [PATCH v3 3/6] strfroml.3: " Wainer dos Santos Moschetta ` (3 subsequent siblings) 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-07 12:54 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strfromf.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/strfromf.3 diff --git a/man3/strfromf.3 b/man3/strfromf.3 new file mode 100644 index 0000000..d20099d --- /dev/null +++ b/man3/strfromf.3 @@ -0,0 +1 @@ +.so man3/strfromd.3 -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v3 3/6] strfroml.3: add link to strfromd(3) [not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2016-12-07 12:54 ` [PATCH v3 1/6] Add strfromd.3 Wainer dos Santos Moschetta 2016-12-07 12:54 ` [PATCH v3 2/6] strfromf.3: add link to strfromd(3) Wainer dos Santos Moschetta @ 2016-12-07 12:54 ` Wainer dos Santos Moschetta 2016-12-07 12:54 ` [PATCH v3 4/6] atof.3: SEE ALSO: add strfromd(3) Wainer dos Santos Moschetta ` (2 subsequent siblings) 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-07 12:54 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strfroml.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/strfroml.3 diff --git a/man3/strfroml.3 b/man3/strfroml.3 new file mode 100644 index 0000000..d20099d --- /dev/null +++ b/man3/strfroml.3 @@ -0,0 +1 @@ +.so man3/strfromd.3 -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v3 4/6] atof.3: SEE ALSO: add strfromd(3) [not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> ` (2 preceding siblings ...) 2016-12-07 12:54 ` [PATCH v3 3/6] strfroml.3: " Wainer dos Santos Moschetta @ 2016-12-07 12:54 ` Wainer dos Santos Moschetta 2016-12-07 12:54 ` [PATCH v3 5/6] printf.3: " Wainer dos Santos Moschetta 2016-12-07 12:54 ` [PATCH v3 6/6] strtod.3: " Wainer dos Santos Moschetta 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-07 12:54 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/atof.3 | 1 + 1 file changed, 1 insertion(+) diff --git a/man3/atof.3 b/man3/atof.3 index 7cb18bd..7f3e892 100644 --- a/man3/atof.3 +++ b/man3/atof.3 @@ -71,6 +71,7 @@ POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD. .SH SEE ALSO .BR atoi (3), .BR atol (3), +.BR strfromd (3), .BR strtod (3), .BR strtol (3), .BR strtoul (3) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v3 5/6] printf.3: SEE ALSO: add strfromd(3) [not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> ` (3 preceding siblings ...) 2016-12-07 12:54 ` [PATCH v3 4/6] atof.3: SEE ALSO: add strfromd(3) Wainer dos Santos Moschetta @ 2016-12-07 12:54 ` Wainer dos Santos Moschetta 2016-12-07 12:54 ` [PATCH v3 6/6] strtod.3: " Wainer dos Santos Moschetta 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-07 12:54 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/printf.3 | 1 + 1 file changed, 1 insertion(+) diff --git a/man3/printf.3 b/man3/printf.3 index 603a253..85b0c4c 100644 --- a/man3/printf.3 +++ b/man3/printf.3 @@ -1153,6 +1153,7 @@ error instead of being handled gracefully. .BR puts (3), .BR scanf (3), .BR setlocale (3), +.BR strfromd (3), .BR wcrtomb (3), .BR wprintf (3), .BR locale (5) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v3 6/6] strtod.3: SEE ALSO: add strfromd(3) [not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> ` (4 preceding siblings ...) 2016-12-07 12:54 ` [PATCH v3 5/6] printf.3: " Wainer dos Santos Moschetta @ 2016-12-07 12:54 ` Wainer dos Santos Moschetta 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-07 12:54 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strtod.3 | 1 + 1 file changed, 1 insertion(+) diff --git a/man3/strtod.3 b/man3/strtod.3 index 4604462..b79c111 100644 --- a/man3/strtod.3 +++ b/man3/strtod.3 @@ -209,5 +209,6 @@ the use of the functions described in this manual page is similar. .BR nan (3), .BR nanf (3), .BR nanl (3), +.BR strfromd (3), .BR strtol (3), .BR strtoul (3) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v2 2/6] strfromf.3: add link to strfromd(3) [not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2016-12-05 18:30 ` [PATCH v2 1/6] Add strfromd.3 Wainer dos Santos Moschetta @ 2016-12-05 18:30 ` Wainer dos Santos Moschetta 2016-12-05 18:30 ` [PATCH v2 3/6] strfroml.3: " Wainer dos Santos Moschetta ` (3 subsequent siblings) 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-05 18:30 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strfromf.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/strfromf.3 diff --git a/man3/strfromf.3 b/man3/strfromf.3 new file mode 100644 index 0000000..d20099d --- /dev/null +++ b/man3/strfromf.3 @@ -0,0 +1 @@ +.so man3/strfromd.3 -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v2 3/6] strfroml.3: add link to strfromd(3) [not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> 2016-12-05 18:30 ` [PATCH v2 1/6] Add strfromd.3 Wainer dos Santos Moschetta 2016-12-05 18:30 ` [PATCH v2 2/6] strfromf.3: add link to strfromd(3) Wainer dos Santos Moschetta @ 2016-12-05 18:30 ` Wainer dos Santos Moschetta 2016-12-05 18:30 ` [PATCH v2 4/6] atof.3: SEE ALSO: add strfromd(3) Wainer dos Santos Moschetta ` (2 subsequent siblings) 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-05 18:30 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strfroml.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/strfroml.3 diff --git a/man3/strfroml.3 b/man3/strfroml.3 new file mode 100644 index 0000000..d20099d --- /dev/null +++ b/man3/strfroml.3 @@ -0,0 +1 @@ +.so man3/strfromd.3 -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v2 4/6] atof.3: SEE ALSO: add strfromd(3) [not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> ` (2 preceding siblings ...) 2016-12-05 18:30 ` [PATCH v2 3/6] strfroml.3: " Wainer dos Santos Moschetta @ 2016-12-05 18:30 ` Wainer dos Santos Moschetta 2016-12-05 18:30 ` [PATCH v2 5/6] printf.3: " Wainer dos Santos Moschetta 2016-12-05 18:30 ` [PATCH v2 6/6] strtod.3: " Wainer dos Santos Moschetta 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-05 18:30 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/atof.3 | 1 + 1 file changed, 1 insertion(+) diff --git a/man3/atof.3 b/man3/atof.3 index 7cb18bd..7f3e892 100644 --- a/man3/atof.3 +++ b/man3/atof.3 @@ -71,6 +71,7 @@ POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD. .SH SEE ALSO .BR atoi (3), .BR atol (3), +.BR strfromd (3), .BR strtod (3), .BR strtol (3), .BR strtoul (3) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v2 5/6] printf.3: SEE ALSO: add strfromd(3) [not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> ` (3 preceding siblings ...) 2016-12-05 18:30 ` [PATCH v2 4/6] atof.3: SEE ALSO: add strfromd(3) Wainer dos Santos Moschetta @ 2016-12-05 18:30 ` Wainer dos Santos Moschetta 2016-12-05 18:30 ` [PATCH v2 6/6] strtod.3: " Wainer dos Santos Moschetta 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-05 18:30 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/printf.3 | 1 + 1 file changed, 1 insertion(+) diff --git a/man3/printf.3 b/man3/printf.3 index 603a253..85b0c4c 100644 --- a/man3/printf.3 +++ b/man3/printf.3 @@ -1153,6 +1153,7 @@ error instead of being handled gracefully. .BR puts (3), .BR scanf (3), .BR setlocale (3), +.BR strfromd (3), .BR wcrtomb (3), .BR wprintf (3), .BR locale (5) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH v2 6/6] strtod.3: SEE ALSO: add strfromd(3) [not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> ` (4 preceding siblings ...) 2016-12-05 18:30 ` [PATCH v2 5/6] printf.3: " Wainer dos Santos Moschetta @ 2016-12-05 18:30 ` Wainer dos Santos Moschetta 5 siblings, 0 replies; 21+ messages in thread From: Wainer dos Santos Moschetta @ 2016-12-05 18:30 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: gftg-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, linux-man-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Wainer dos Santos Moschetta <wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> --- man3/strtod.3 | 1 + 1 file changed, 1 insertion(+) diff --git a/man3/strtod.3 b/man3/strtod.3 index 4604462..b79c111 100644 --- a/man3/strtod.3 +++ b/man3/strtod.3 @@ -209,5 +209,6 @@ the use of the functions described in this manual page is similar. .BR nan (3), .BR nanf (3), .BR nanl (3), +.BR strfromd (3), .BR strtol (3), .BR strtoul (3) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 21+ messages in thread
end of thread, other threads:[~2016-12-07 15:51 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 19:22 RFC: man-page for strfrom functions Wainer S. Moschetta
[not found] ` <e277d505-797f-acaf-2fce-56de92db5030-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-12-01 17:15 ` Michael Kerrisk (man-pages)
[not found] ` <ac388dba-b7e4-b33e-7c43-eda88a8e4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-12-02 19:55 ` [PATCH] Add strfrom.3 Wainer dos Santos Moschetta
[not found] ` <20161202195509.10640-1-wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-12-03 14:14 ` Michael Kerrisk (man-pages)
[not found] ` <c5d0be31-9c1d-000a-89ac-a18909ef4ac5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-12-05 18:30 ` [PATCH v2 0/6] Add strfromd.3: changelog Wainer dos Santos Moschetta
[not found] ` <cover.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-12-05 18:30 ` [PATCH v2 1/6] Add strfromd.3 Wainer dos Santos Moschetta
[not found] ` <22cf57d5501526616e3f63d00102ce7cbf7e7287.1480961953.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-12-05 22:29 ` Michael Kerrisk (man-pages)
[not found] ` <bf67bf0f-0ac8-9d88-3a07-3f705e1f743e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-12-06 12:49 ` Wainer S. Moschetta
2016-12-07 12:54 ` [PATCH v3 0/6] Add strfromd.3: changelog Wainer dos Santos Moschetta
[not found] ` <cover.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-12-07 12:54 ` [PATCH v3 1/6] Add strfromd.3 Wainer dos Santos Moschetta
[not found] ` <2e277803abb58cd3d15ff5d26d667ac095df2562.1481114754.git.wainersm-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-12-07 15:51 ` Michael Kerrisk (man-pages)
2016-12-07 12:54 ` [PATCH v3 2/6] strfromf.3: add link to strfromd(3) Wainer dos Santos Moschetta
2016-12-07 12:54 ` [PATCH v3 3/6] strfroml.3: " Wainer dos Santos Moschetta
2016-12-07 12:54 ` [PATCH v3 4/6] atof.3: SEE ALSO: add strfromd(3) Wainer dos Santos Moschetta
2016-12-07 12:54 ` [PATCH v3 5/6] printf.3: " Wainer dos Santos Moschetta
2016-12-07 12:54 ` [PATCH v3 6/6] strtod.3: " Wainer dos Santos Moschetta
2016-12-05 18:30 ` [PATCH v2 2/6] strfromf.3: add link to strfromd(3) Wainer dos Santos Moschetta
2016-12-05 18:30 ` [PATCH v2 3/6] strfroml.3: " Wainer dos Santos Moschetta
2016-12-05 18:30 ` [PATCH v2 4/6] atof.3: SEE ALSO: add strfromd(3) Wainer dos Santos Moschetta
2016-12-05 18:30 ` [PATCH v2 5/6] printf.3: " Wainer dos Santos Moschetta
2016-12-05 18:30 ` [PATCH v2 6/6] strtod.3: " Wainer dos Santos Moschetta
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).