将字符串转化为小写
Convert a string to lowercase.
函数原型:
_tcslwr 只是一个宏,看有没有定义unicode 或者多字符集
有它们对应的安全函数:
_strlwr_s _wcslwr_s _mbslwr_s
返回值:返回对应的小写字符串,对应的传入的参数也变了。应此在用的时候,要确保传入的参数正确,就没有必要返回值了
Each of these functions returns a pointer to the converted string. Because the modification is done in place, the pointer returned is the same as the pointer passed as the input argument. No return value is reserved to indicate an error.
举例:
这里使用安全函数
char szStr[] = "asdfDGFDS";
//第二个参数一定要把‘
Convert a string to lowercase.
函数原型:
char *_strlwr( char *string ); //#include <string.h>
wchar_t *_wcslwr( wchar_t *string
); //#include <string.h> or <wchar.h> _UNICODE Defined
unsigned char *_mbslwr( unsigned char
*string ); //#include <mbstring.h> _MBCS Defined
_tcslwr 只是一个宏,看有没有定义unicode 或者多字符集
有它们对应的安全函数:
_strlwr_s _wcslwr_s _mbslwr_s
返回值:返回对应的小写字符串,对应的传入的参数也变了。应此在用的时候,要确保传入的参数正确,就没有必要返回值了
Each of these functions returns a pointer to the converted string. Because the modification is done in place, the pointer returned is the same as the pointer passed as the input argument. No return value is reserved to indicate an error.
举例:
这里使用安全函数
char szStr[] = "asdfDGFDS";
//第二个参数一定要把‘