ComWrt writes a string to a previously initialized COM port.
sprintf() uses a format string to create a string from other data types.
int myInt=0;
double myDouble=1.23;
char myString[256];
sprintf(myString, "I bought %d apples at $%.2f each.\n",myInt, myDouble);
ComWrt (1, myString, strlen(myString));