ecvt.3: ATTRIBUTES: Note functions that are not thread-safe

The functions ecvt() and fcvt() return a string located in a
static buffer which is overwritten by the next call to the
functions, so they are not thread-safe.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Peng Haitao 2013-03-12 18:41:58 +08:00 committed by Michael Kerrisk
parent 746e0af189
commit ff6bff8a99
1 changed files with 8 additions and 1 deletions

View File

@ -29,7 +29,7 @@
.\" Modified Sat Jul 24 19:40:39 1993 by Rik Faith (faith@cs.unc.edu)
.\" Modified Fri Jun 25 12:10:47 1999 by Andries Brouwer (aeb@cwi.nl)
.\"
.TH ECVT 3 2010-09-20 "" "Linux Programmer's Manual"
.TH ECVT 3 2013-03-12 "" "Linux Programmer's Manual"
.SH NAME
ecvt, fcvt \- convert a floating-point number to a string
.SH SYNOPSIS
@ -107,6 +107,13 @@ The static string is overwritten by each call to
.BR ecvt ()
or
.BR fcvt ().
.SH ATTRIBUTES
.SS Multithreading (see pthreads(7))
The
.BR ecvt ()
and
.BR fcvt ()
functions are not thread-safe.
.SH CONFORMING TO
SVr2;
marked as LEGACY in POSIX.1-2001.