diff options
Diffstat (limited to 'contrib/ntp/tests/sandbox/smeartest.c')
-rw-r--r-- | contrib/ntp/tests/sandbox/smeartest.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/ntp/tests/sandbox/smeartest.c b/contrib/ntp/tests/sandbox/smeartest.c index e1b04e5..a8ee210 100644 --- a/contrib/ntp/tests/sandbox/smeartest.c +++ b/contrib/ntp/tests/sandbox/smeartest.c @@ -127,6 +127,8 @@ ltor(l_fp l) main() { + l_fp l; + int rc; rtol(0xfe800000); rtol(0xfe800001); @@ -164,5 +166,15 @@ main() rtoltor(0xfe7ffffe); rtoltor(0xfe7fffff); + rc = atolfp("-.932087", &l); + ltor(l); + rtol(0xfec458b0); + printf("%x -> %d.%d.%d.%d\n", + 0xfec458b0, + 0xfe, + 0xc4, + 0x58, + 0xb0); + return 0; } |