thanks guys...i sort of have it working
heres the apend part that i have
Code:
if (switchvalue == 1){
sprintf(str1,"keys %c%c%c Op:%u",char1, char2, char3, switchvalue);
sprintf(temp,"%c%c%c",char1, char2, char3);
if (strlen(output)>=15){
output[0] = output[3];
output[1] = output[4];
output[2] = output[5];
output[3] = output[6];
output[4] = output[7];
output[5] = output[8];
output[6] = output[9];
output[7] = output[10];
output[8] = output[11];
output[9] = output[12];
output[10] = output[13];
output[11] = output[14];
output[12] = output[15];
output[13] = output[16];
output[14] = char1;
output[15] = char2;
output[16] = char3;
}
strcat(output,temp);
VTlcd_print(0,0,str1,0);
VTlcd_print(1,0,clear,0);
VTlcd_print(1,0,output,0);
}
the problem with what i have now is that since the characters are inputed 3 at a time, so in order for that big if statment to work, the strlen function must be a multiple of 3, or it will either skip it once (if i make it >= 16) or chop off the last char of the string (which is what its doing now.) However, i will try using just sprintf as suggested above. I sort of tried that before but the little LCD display i have hooked up to the 68hc11 wass displaying all sorts of disturbing stuff.
thanks guys...this is my first thread here and im sure ill be back, as this class for all intents and purposes is "teach yourself C"