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
/
mfptoms.c
blob
aa7ecc75bd863b6f64d12f11a952546293f4dbd2
1
/* $NetBSD$ */
2
3
/*
4
* mfptoms - Return an asciized signed long fp number in milliseconds
5
*/
6
#include
"ntp_fp.h"
7
#include
"ntp_stdlib.h"
8
9
char
*
10
mfptoms
(
11
u_long fpi
,
12
u_long fpf
,
13
short
ndec
14
)
15
{
16
int
isneg
;
17
18
if
(
M_ISNEG
(
fpi
,
fpf
)) {
19
isneg
=
1
;
20
M_NEG
(
fpi
,
fpf
);
21
}
else
22
isneg
=
0
;
23
24
return
dolfptoa
(
fpi
,
fpf
,
isneg
,
ndec
,
1
);
25
}