Spaces to tabs converter
Bugs
j unconditionally loops to TABVALUE - 1. This is wrong:

If d happens to not be a space, it is not printed out.
If next d happens to be a space, it is still counted.

Test against a  b  cdef. The output is a\tf.