musl/src/stdlib/ecvt.c, branch master musl - an implementation of the standard library for Linux-based systems include cleanups: remove unused headers and add feature test macros 2013年12月12日T05:09:18+00:00 Szabolcs Nagy nsz@port70.net 2013年12月12日T05:09:18+00:00 571744447c23f91feb6439948f3a619aca850dfb
fix ecvt/fcvt decimal point position output 2013年08月07日T15:14:45+00:00 Rich Felker dalias@aerifal.cx 2013年08月07日T15:14:45+00:00 a0cc022cc79984648e0ea5e7e5e7620686c56b60 these functions are obsolete and have no modern standard. the text in SUSv2 is highly ambiguous, specifying that "negative means to the left of the returned digits", which suggested to me that 0 would mean to the right of the first digit. however, this does not agree with historic practice, and the Linux man pages are more clear, specifying that a negative value means "that the decimal point is to the left of the start of the string" (in which case, 0 would mean the start of the string, in accordance with historic practice).
these functions are obsolete and have no modern standard. the text in
SUSv2 is highly ambiguous, specifying that "negative means to the left
of the returned digits", which suggested to me that 0 would mean to
the right of the first digit. however, this does not agree with
historic practice, and the Linux man pages are more clear, specifying
that a negative value means "that the decimal point is to the left of
the start of the string" (in which case, 0 would mean the start of the
string, in accordance with historic practice).
add deprecated (removed from posix) [efg]cvt() functions 2012年02月06日T06:14:23+00:00 Rich Felker dalias@aerifal.cx 2012年02月06日T06:14:23+00:00 f4ad36c4bf23899a3164ebd40ff5781c152bcb01 these have not been heavily tested, but they should work as described in the old standards. probably broken for non-finite values...
these have not been heavily tested, but they should work as described
in the old standards. probably broken for non-finite values...

AltStyle によって変換されたページ (->オリジナル) /