BCU/library/kit/kit_string.c

11 lines
214 B
C
Raw Normal View History

2025-02-06 15:08:48 +08:00
#include "kit_string.h"
#include "kit_debug.h"
void char_to_bcd_string(uint8_t value, char *str)
{
*str++ = (uint8_t) ((value / 10) + '0');
*str++ = (uint8_t) ((value % 10) + '0');
*str = 0x00;
}