![]() ![]() The output string has fixed width of 6 characters including null character at the end (string termination). Void WordToStr( unsigned input, char *output) Ĭonverts input word to a string. ShortToStr(t, txt) // txt is " -24" (one blank here) input: signed short number to be convertedĭestination string should be at least 5 characters in length.The output string has fixed width of 5 characters including null character at the end (string termination). Void ShortToStr( short input, char *output) Ĭonverts input signed short number to a string. The output string is right justified and remaining positions on the left (if any) are filled with blanks.ĭestination string should be at least 4 characters in length.īyteToStr(t, txt) // txt is " 24" (one blank here) The output string has fixed width of 4 characters including null character at the end (string termination). Void ByteToStr( unsigned short input, char *output) Ĭonverts input byte to a string. The following functions convert decimal values to BCD and vice versa: You can get text representation of numerical value by passing it to one of the following routines: The mikroC PRO for PIC Conversions Library provides routines for numerals to strings and BCD/decimal conversions.
0 Comments
Leave a Reply. |