3 ?RCS: Copyright (c) 2000 Jarkko Hietaniemi
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?MAKE:d_printf_exp_digits: Compile cat rm run
10 ?S:d_printf_exp_digits:
11 ?S: This symbol's value is either 2 or 3, corresponding to the
12 ?S: number of exponent digits produced by the system's sprintf %[FGfg]
13 ?S: formats when the modulus of the exponent is 99 or less.
16 ?C: This symbol's value is either 2 or 3, corresponding to the
17 ?C: number of exponent digits produced by the system's sprintf %[FGfg]
18 ?C: formats when the modulus of the exponent is 99 or less.
20 ?H:#define PRINTF_EXP_DIGITS $d_printf_exp_digits
23 : Check sprintf exponent digits
25 echo "Checking how many exponent digits your sprintf formats use..."
30 exit(sprintf(b, "%0.1e", 1.2) - 5);
34 if eval $compile; then
37 2|3) d_printf_exp_digits=$? ;;
40 case "$d_printf_exp_digits" in
41 2|3) echo "Your sprintf seems to use $d_printf_exp_digits exponent digits."
44 I do not understand what your sprintf is saying.
45 I'm guessing it uses at least 2 exponent digits.