> You're nearly right, however you can't express the bits of the mask in > binary - C/C++ does not support this format Something that annoys me all the time. If you're on Windows, the built-in Calculator can convert between dec/bin/oct/hex in 'Scientific Mode'. -- gl