Added missing properties.
[AROS.git] / compiler / clib / gcvt.c
blob8b0468b98d04d3c6db658e62269215b70067e493
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2001 function gcvt().
6 Function is deprecated and removed from POSIX.1-2008
7 */
9 #include <stdio.h>
11 /*****************************************************************************
13 NAME */
14 #include <stdlib.h>
16 char * gcvt (
18 /* SYNOPSIS */
19 double number,
20 int ndigit,
21 char * buf
24 /* FUNCTION
25 Converts a number to a minimal length NULL terminated ASCII string.
26 It produces ndigit significant digits in either printf F format or
27 E format.
29 INPUTS
30 number - The number to convert.
31 ndigits - The number of significan digits that the string has to have.
32 buf - The buffer that will contain the result string.
34 RESULT
35 The address of the string pointed to by buf.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 ecvt(), fcvt(), sprintf()
46 INTERNALS
48 ******************************************************************************/
50 sprintf (buf, "%.*G", ndigit, number);
52 return buf;
53 } /* sprintf */