thanks jim...
there is another way...the country road way
char inputIpstring[16];
int oct1,oct2,oct3,oct4,
sscanf(inputIpString,"%d.%d.%d.%d",&oct1,&oct2,&oct3,&oct4)
increment anyof the octetes as you want and
sprintf(inputIpString,"%d.%d.%d.%d",oct1,oct2,oct3,oct4);
BTW, if I pass 225.10.20.30 and would need all the Ip addresses from 225.10.20.30 to 225.10.30.30 without the last octet being changed....that is
225.10.20.30
225.10.21.30
225.10.22.30
225.10.23.30
225.10.24.30
etc...
willt his work with the inet_addr() method,
Would I add 510 and I will get 225.10.21.30 from 225.10.20.30?