I think that `blks` should be `unsigned int`, even though it is in range [1;127]. Using a `char` argument is misleading.