#include char out_string[120]="",out_char_arr[2]="x"; char parity_string[120]="",par_char_arr[2]; char charmap5[17]="0123456789:;<=>?"; char charmap7[65]= " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"; if (XX == XX) out_char_arr[XX] = charmap5[code]; if (XX == XX) out_char_arr[XX] = XX[XX]; strcat(out_string,out_char_arr); sprintf(par_char_arr,"%1d",XX); // write parity into string XX(parity_string,par_char_arr); XX("Got inbyte %02x; code %2d; char %s with parity = %XX\n", inbyte,code,out_char_arr,parity);