in reply to Print hash value even if it's zero

Maybee you should post the whole program, because it should print the "0". There might be an error somewhere else.