📄 osstring_ex.h
字号:
StdCall(VOID *, OsMemSet(VOID *Buffer, int c, size_t Count));/********************************************************************************Function Name: OsMemCpy.Function Description:The function copies a specified number of characters from one buffer to another. This function may not work correctly if the buffers overlap. Arguments: BuffDest - Pointer to buffer to contain copied characters. BuffSrc - Pointer to buffer with the characters to copy. Count - Number of characters to copy.Return Value: A pointer to BuffDest.********************************************************************************/StdCall(VOID *, OsMemCpy(OUT VOID *BuffDest, IN VOID *BuffSrc, size_t Count));/********************************************************************************Function Name: OsMemCmp.Function Description:The function compares a specified number of characters from two buffers.Arguments: Buff1 - Pointer to first buffer to compare. Buff2 - Pointer to second buffer to compare. Count - Number of characters to compare.Return Value: Returns one of three values as follows: 0 if buffers match. < 0 if buff1 is less than buff2. >0 if buff1 is greater than buff2.********************************************************************************/StdCall(int, OsMemCmp(IN VOID *Buff1, IN VOID *Buff2, size_t Count));/********************************************************************************Function Name: OsMemMove.Function Description:The memmove function copies count bytes of characters from src to dest. If some regions of the source area and the destination overlap, memmove ensures that the original source bytes in the overlapping region are copied before being overwritten.Arguments: dest - Destination object. src - Source object count - NNumber of bytes of characters to copy.Return Value: memmove returns the value of dest ********************************************************************************/StdCall(VOID *, OsMemMove(OUT VOID *dest, IN VOID *src, size_t count ));/********************************************************************************Function Name: OsStrCpy.Function Description:The function copies a specified a string from one buffer to another. This function may not work correctly if the buffers overlap. Arguments: BuffDest - Pointer to buffer to contain copied string. BuffSrc - Pointer to buffer with the string to copy.Return Value: A pointer to BuffDest.********************************************************************************/StdCall(VOID *, OsStrCpy(OUT CHAR *BuffDest, IN CHAR *BuffSrc));/********************************************************************************Function Name: OsStrnCpy.Function Description:The function copies a specified a string from one buffer to another. The function does not copy more than MaxSize bytes.The behavior of strncpy is undefined if the source and destination strings overlapArguments: BuffDest - Pointer to buffer to contain copied string. BuffSrc - Pointer to buffer with the string to copy. MaxSize - Max chars to copyReturn Value: A pointer to BuffDest.********************************************************************************/StdCall(CHAR *, OsStrnCpy(OUT CHAR *BuffDest, IN CHAR *BuffSrc, size_t MaxSize));/********************************************************************************Function Name: OsStrCat.Function Description:The function copies a specified a string from one buffer to another, at its end. This function may not work correctly if the buffers overlap. Arguments: BuffDest - Pointer to buffer to contain copied string. BuffSrc - Pointer to buffer with the string to copy.Return Value: A pointer to BuffDest.********************************************************************************/StdCall(CHAR *, OsStrCat(OUT CHAR *BuffDest, IN CHAR *BuffSrc));/********************************************************************************Function Name: OsStrnCat.Function Description:The function copies a specified a string from one buffer to another, at its end. The function does not copy more than MaxSize bytes.The behavior of strncpy is undefined if the source and destination strings overlapArguments: BuffDest - Pointer to buffer to contain copied string. BuffSrc - Pointer to buffer with the string to copy. MaxSize - Max chars to copyReturn Value: A pointer to BuffDest.********************************************************************************/StdCall(CHAR *, OsStrnCat(OUT CHAR *BuffDest, IN CHAR *BuffSrc, size_t MaxSize));/********************************************************************************Function Name: OsStrCmp.Function Description:The strcmp function compares string1 and string2 lexicographically and returns a value indicating their relationshipArguments: string1 ,string2 - Null terminated strings to compareReturn Value: lexicographic relation of string1 to string2.********************************************************************************/StdCall(int, OsStrCmp(IN CHAR *string1, IN CHAR *string2));/********************************************************************************Function Name: OsStrnCpy.Function Description:The strcmp function compares string1 and string2 lexicographically and returns a value indicating their relationshipArguments: string1 ,string2 - Null terminated strings to compare MaxSize - Number of characters to compareReturn Value: lexicographic relation of string1 to string2.********************************************************************************/StdCall(int, OsStrnCmp(IN CHAR *string1, IN CHAR *string2, size_t MaxSize));/********************************************************************************Function Name: OsToupper.Function Description:converts a charecter c to upper case Arguments: c - charected to be converted to upper case.Return Value: upper case charecter of c.********************************************************************************/StdCall(int, OsToupper(int c));/********************************************************************************Function Name: OsTolower.Function Description:converts a charecter c to lower case Arguments: c - charected to be converted to lower case.Return Value: lower case charecter of c.********************************************************************************/StdCall(int, OsTolower(int c));/********************************************************************************Function Name: OsIsDigit.Function tests if a charecter is a decimal digit. Arguments: c - integer to test.Return Value: non zero value if c is a decimal digit('0' - '9').********************************************************************************/StdCall(int, OsIsDigit(int c));/********************************************************************************Function Name: OsSprintf.Function Description:The OsSprintf function formats and stores a series of characters and values in buffer. Arguments: buffer - Pointer to buffer to contain copied string. format - control stringReturn Value: OsSprintf returns the number of bytes stored in buffer, not counting the terminating null character. ********************************************************************************/int __cdecl OsSprintf(OUT CHAR *buffer, IN CHAR *format_string, ...);/********************************************************************************Function Name: OSSprintfFixedArgs.Function Description:The OSSprintfFixedArgs function formats and stores a series of characters and values in buffer. The function recieves the format parameters not on the stack, but using the va_list parameterArguments: buffer - Pointer to buffer to contain copied string. format - control string. StartedVaList - pointer to va_list that has been started to include the format argumentsReturn Value: OsSprintf returns the number of bytes stored in buffer, not counting the terminating null character. ********************************************************************************/StdCall(int, OSSprintfFixedArgs(OUT CHAR *buffer, IN CHAR *format, IN CHAR *StartedVaList));/********************************************************************************Function Name: OsStrLen.Function Description:The function returns the length of a null-terminated string.Arguments: String - Pointer to buffer to contain copied string.Return Value: int - the length of a null-terminated string.********************************************************************************/StdCall(size_t, OsStrLen(IN CHAR *String)); int Osatoi(IN PCHAR String); #if ( USE_PRAGMA_PACK == 1 )#pragma pack(pop) /* Packing compatible with our VXDs */#endif#endif /* UK_MODE == UK_KERNEL */#ifdef __cplusplus}#endif#endif /* __OS_STRING_EX_H__ */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -