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
/
fptoms.c
blob
1febe3e00d02deaeafd5836f256217e9ba7638a4
1
/* $NetBSD$ */
2
3
/*
4
* fptoms - return an asciized s_fp number in milliseconds
5
*/
6
#include
"ntp_fp.h"
7
8
char
*
9
fptoms
(
10
s_fp fpv
,
11
short
ndec
12
)
13
{
14
u_fp plusfp
;
15
int
neg
;
16
17
if
(
fpv
<
0
) {
18
plusfp
= (
u_fp
)(-
fpv
);
19
neg
=
1
;
20
}
else
{
21
plusfp
= (
u_fp
)
fpv
;
22
neg
=
0
;
23
}
24
25
return
dofptoa
(
plusfp
,
neg
,
ndec
,
1
);
26
}