#include #include #include "dec2hex.h" #include void i16dec2hexs(int16 in,char* out) { int quot; int i=0,j=0,k=0,tmp,temp; quot=(int)in; while(quot!=0) { temp=quot%16; //To convert integer into character if(temp < 10) temp = temp + 48; else temp = temp + 55; out[i++]=temp; quot = quot/16; //printf("%c ",out[i-1]); } out[i]='\0'; j=i-1; i=0; while(i