Integer conversion to hexadecimal or binary string

1. Convert u16Num to a binary string

/*                                                                                             
***********************************************************************************************
,* Description    : Int2BinStr          将 u16Num 转换成 Bin 字符串 
                    函数使用  :   u8* u8BinStr = Int2BinStr(u16Num, u8Width) ; 
                    具体操作  :
                    使用后    :   free(u8BinStr);
,* Input          : u16 u16Num, u8 u8Width                                                                         
,* Output         : 无                                                                         
,* Return         : u8BinStr                                                                         
,* Date           : 2023.08.25
,* author         : By yangbocsu
***********************************************************************

Guess you like

Origin blog.csdn.net/qq_38689263/article/details/132505954