myansi.h
来自「如何制作ramdisk的一个好资料」· C头文件 代码 · 共 46 行
H
46 行
/**************************************************************
;* *
;* INSTUTITE FOR INFORMATION INDUSTRY *
;* MYANSI HEADER -- RAMDISK *
;* September 23, 1998 *
;* *
;*************************************************************/
#ifndef _MY_ANSI_H
#define _MY_ANSI_H
/*************************************************************
Function: myStrLen
Description:
get the length of a string
Input:
src - the source string with a mix of single-byte and
double-byte chars
Output:
**************************************************************/
int myStrLen(unsigned char *src);
/**************************************************************
Function: myStrCpy
Description:
copy the content of a string to another buffer
Input:
to - the source string
from - the destination string
**************************************************************/
unsigned char *myStrCpy(unsigned char *to, const unsigned char *from);
/*************************************************************
Function: myPrintInt
Description:
print a number without going to the next line
Input:
number - the number to be printed
type - the form in which the number is printed (DEC, HEX, ...)
**************************************************************/
void myPrintInt(unsigned long number, int type);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?