string.h
来自「自己动手写操作系统源代码,不可多得的代码」· C头文件 代码 · 共 38 行
H
38 行
//***********************************************************************/
// Author : Garry
// Original Date : May,28 2004
// Module Name : string.h
// Module Funciton :
// This module and string.cpp countains the
// string operation method.
// Last modified Author :
// Last modified Date :
// Last modified Content :
// 1.
// 2.
// Lines number :
//***********************************************************************/
#ifndef __STRING__
#define __STRING__
#define MAX_STRING_LEN 512 //Max string length.
BOOL StrCmp(LPSTR,LPSTR); //String compare functions.
WORD StrLen(LPSTR); //Get the string's length.
BOOL Hex2Str(DWORD,LPSTR); //Convert the first parameter(hex format)
//to string.
BOOL Str2Hex(LPSTR,DWORD*); //Convert the string to hex number.
BOOL Str2Int(LPSTR,DWORD*); //Convert the string to int.
BOOL Int2Str(DWORD,LPSTR); //Convert the 32 bit int to string.
VOID PrintLine(LPSTR); //Print the string at a new line.
VOID StrCpy(LPSTR,LPSTR); //Copy one string to the second string.
VOID ConvertToUper(LPSTR); //Convert the string's characters from low to uper.
INT FormString(LPSTR,LPSTR,LPVOID*);
#endif //string.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?