floatio.h (113142) | floatio.h (113146) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)floatio.h 8.1 (Berkeley) 6/4/93 | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)floatio.h 8.1 (Berkeley) 6/4/93 |
37 * $FreeBSD: head/lib/libc/stdio/floatio.h 113142 2003-04-05 22:03:43Z das $ | 37 * $FreeBSD: head/lib/libc/stdio/floatio.h 113146 2003-04-05 22:11:42Z das $ |
38 */ 39 40/* 41 * Floating point scanf/printf (input/output) definitions. 42 */ 43 44/* 45 * MAXEXPDIG is the maximum number of decimal digits needed to store a 46 * floating point exponent in the largest supported format. It should 47 * be ceil(log10(LDBL_MAX_10_EXP)) or, if hexadecimal floating point 48 * conversions are supported, ceil(log10(LDBL_MAX_EXP)). But since it 49 * is presently never greater than 5 in practice, we fudge it. 50 */ 51#define MAXEXPDIG 6 52#if LDBL_MAX_EXP > 999999 53#error "floating point buffers too small" 54#endif | 38 */ 39 40/* 41 * Floating point scanf/printf (input/output) definitions. 42 */ 43 44/* 45 * MAXEXPDIG is the maximum number of decimal digits needed to store a 46 * floating point exponent in the largest supported format. It should 47 * be ceil(log10(LDBL_MAX_10_EXP)) or, if hexadecimal floating point 48 * conversions are supported, ceil(log10(LDBL_MAX_EXP)). But since it 49 * is presently never greater than 5 in practice, we fudge it. 50 */ 51#define MAXEXPDIG 6 52#if LDBL_MAX_EXP > 999999 53#error "floating point buffers too small" 54#endif |
55 56char *__ldtoa(long double *, int, int, int *, int *, char **); |
|