ggccvvtt() -- General Function (libc)

Convert floating-point numbers to strings
cchhaarr *
ggccvvtt(_d, _p_r_e_c, _b_u_f_f_e_r)
ddoouubbllee _d; iinntt _p_r_e_c; cchhaarr *_b_u_f_f_e_r;

ggccvvtt() converts floating-point  number _d into a NUL-terminated string.  Its
operation resembles that of pprriinnttff()'s operator %gg.

Argument  _p_r_e_c  gives the  precision  of  the string  i.e.,  the number  of
numerals to the right of the  decimal point.  Unlike its cousins eeccvvtt() and
ffccvvtt(), ggccvvtt()  uses a buffer that  is defined by the  caller.  _b_u_f_f_e_r must
point  to a  buffer large  enough to  hold the  result; 64  characters will
always be sufficient.  When  generating its output, ggccvvtt() mimics ffccvvtt() if
possible.  Otherwise, it mimics eeccvvtt().

ggccvvtt returns _b_u_f_f_e_r.

_E_x_a_m_p_l_e
For an example of this function, see the entry for eeccvvtt().

_S_e_e _A_l_s_o
lliibbcc
