repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
dist
/
ntp
/
libntp
/
fptoa.c
blob
c5e41f2483b27400799589093934d34a4310d9c1
1
/* $NetBSD$ */
2
3
/*
4
* fptoa - return an asciized representation of an s_fp number
5
*/
6
#include
"ntp_fp.h"
7
#include
"ntp_stdlib.h"
8
9
char
*
10
fptoa
(
11
s_fp fpv
,
12
short
ndec
13
)
14
{
15
u_fp plusfp
;
16
int
neg
;
17
18
if
(
fpv
<
0
) {
19
plusfp
= (
u_fp
)(-
fpv
);
20
neg
=
1
;
21
}
else
{
22
plusfp
= (
u_fp
)
fpv
;
23
neg
=
0
;
24
}
25
26
return
dofptoa
(
plusfp
,
neg
,
ndec
,
0
);
27
}