Your hamming code looks like an IOCCC entry !
And it's probably not copied properly. Look :

Code: C
.
.
.
return="" -1;="" }="" ����="" void="" main()="" {="" hanming();="" coco;="" int="" i,n,m,h[20
;=""
.
.

Anyway, you can use extern to use functions from another file. So you can just call the hamming function after executing the entropy calculation.