John Payson wrote: > > |Does anyone know how I can do a sprintf using the CCS compiler? > > If you really want to, you could do something like this: > > char index; > char my_string[32]; > > void myconcat(char ch) > { > my_string[index++] = ch; > } > > void myfunction(char whatever) > { > printf(myconcat,"The number is %u",whatever); > } > > If the first argument to printf is a function that takes one char > argument, that function will be called for each character in the > output string. > Fantastic... Miguel