Jooel: A Class-A network is definitely overkill with regards to testing in case of returning the valid IPs. However, testing whether an IP address is part of a Class-A network should not create any problem.

Also, I do not test for every possible return, thus you definitely won't have me check whether it atually returns all 32000+ possible IP addresses for a 255.255.0.0 subnet, but your code should be able to handle it, anyway.

I can always decide later on to add some tests to it [Wink]
_________________________
There are two types of vessels, submarines and targets.