format_transformed.h

来自「s3c2440的LCD控制器驱动程序 ps 无操作系统的情况」· C头文件 代码 · 共 64 行

H
64
字号
/*
******************************************************************************************************************
*                                            xxx project ---- xxx module
*
*                        Copyright(C), 2006-2007, Allwinner Microelectronic Co., Ltd.
*											All Rights Reserved
*
*File Name: format_transformed.h
*
*Author: Wang Yugang
*
*Version  1.0
*
*Date  2007.7.30
*
*Description: test void UART_printf( const char * str, ...)
*
*Others : None at present.
*
*
* History :
*
* <Author>          <time>      <version>     <desricption>
*
* Wangyugang      2007.7.30        1.0         build the file
*  
*******************************************************************************************************************
*/

#ifndef  __format_transformed_h
#define  __format_transformed_h



#define  HEX_x   'x'
#define  HEX_X   'X'




//This function is to convert an 'int' data 'input' to a string in decimalism, 
//and the string converted is in 'str'.
extern void int_to_string_dec( int input, char * str );


//This function is to convert an 'int' data 'input' to a string in hex, 
//and the string converted is in 'str'.
extern void int_to_string_hex( int input, char * str, int hex_flag );


// This function is to convert an 'unsigned int' data 'input' to a string in decimalism, and 
// the  string converted is in 'str'.
extern void Uint_to_string_dec( unsigned int input, char * str );

         




#endif     //  ifndef __format_transformed_h



/* end of format_transformed.h  */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?