Fix up the decode routine to make more sense.
Add decode to tecodef.h
Changed to use snprintf.
Switch to snprintf.
Comments, update version.  Changes to call to decode() for :^T handling.
Corrected definition of tecocmd.  Was resulting in incorrect sizeof().
More C-ification...