Pg wrote:
> for (i = 0; i < 8; ++i) {
> if ((k = (int)(d *= 256.0)) >= 256) k = 255;
> packet[NTP_TRANSMIT+i] = k;
> d -= k;
> }More precisely, it is doing a float to scaled binary conversion in network byte order, with a hack to cope with rounding errors. I'm a bit uneasy about the hack. _______________________________________________ questions mailing list [email protected] https://lists.ntp.org/mailman/listinfo/questions
