[En-Nut-Discussion] ICC printf wierdness

Joe Doubek jdoubek at control4.com
Wed Jun 30 19:19:14 CEST 2004


Hello all... I've have a puzzler under ICC... when I have an IP address
of 10.11.11.234, any ideas why: 

 

    printf("addr %s ", inet_ntoa(confnet.cdn_ip_addr));

    printf("mask %s\n", inet_ntoa(confnet.cdn_ip_mask));

 

prints out:

 

addr 10.11.11.234 mask 255.255.0.0

 

whereas:

 

printf("addr %s mask %s\n", inet_ntoa(confnet.cdn_ip_addr),
inet_ntoa(confnet.cdn_ip_mask));

 

prints out:

 

addr 255.255.0.0 mask 255.255.0.0

 

strange hmm?

 

-Joe

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20040630/00533910/attachment-0001.html>


More information about the En-Nut-Discussion mailing list