📄 strutl.h
字号:
/*""FILE COMMENT""*************************************************************
* System Name : for eduction (NO TRANSFERRING)
* File Name : strutl.h
* Contents : definition file for dealing with string
* Model : for OAKS8-LCD Board
* CPU : R8C/Tiny series
* Compiler : NC30WA(V.5.30 Release 1)
* OS : not be used
* Programer : RENESAS Semiconductor Training Center
* Note : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
*******************************************************************************
* COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
* AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
*******************************************************************************
* History : ---
*""FILE COMMENT END""*********************************************************/
#ifndef __STRUTL_H
#define __STRUTL_H
int STRUTL__strlen(const char *p); /* get string length */
void STRUTL__strcpy(char *dest, const char *src); /* copy string */
void STRUTL__x2s(int hex, char *s, int len);
/* change hexadecimal number to string with decided length */
BOOL STRUTL__x2a(int hex, char *c); /* change hexadecimal number to a character */
BOOL STRUTL__s2x(const unsigned char *s, int *hex, int len);
/* change string with decided length to hexadecimal number */
BOOL STRUTL__a2x(unsigned char c, int *hex); /* change a character to hexadecimal number */
void STRUTL__d2s(int dec, unsigned char *s, int len);
/*change decimal number to string with decided length*/
BOOL STRUTL__d2a(int dec, unsigned char *c); /* change decimal number to a character */
BOOL STRUTL__s2d(const unsigned char *s, int *dec, int len);
/* change string with decided length to hexadecimal number */
BOOL STRUTL__a2d(unsigned char c, int *dec); /* change a character to decimal number */
#endif /*__STRUTL_H*/
/******************************************************************************
end of file
******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -