Cross Reference:
xref
: /
illumos-gate
/
usr
/
src
/
cmd
/
xntpd
/
libntp
/
fptoa.c
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
fptoa.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1996 by Sun Microsystems, Inc.
* All Rights Reserved.
*/
#
pragma
ident
"%Z%%M% %I% %E% SMI"
/*
* fptoa - return an asciized representation of an s_fp number
*/
#
include
"
ntp_fp.h
"
#
include
"
ntp_stdlib.h
"
char
*
fptoa
(
fpv
,
ndec
)
s_fp
fpv
;
int
ndec
;
{
u_fp
plusfp
;
int
neg
;
if
(
fpv
< 0) {
plusfp
= (
u_fp
)(-
fpv
);
neg
=
1
;
}
else
{
plusfp
= (
u_fp
)
fpv
;
neg
= 0;
}
return
dofptoa
(
plusfp
,
neg
,
ndec
, 0);
}