关于tolower()问题的求证

shiyang1212 2008-03-27 10:14:27
各位达人,请问在用tolower()转换一串字符串时如果字符串中本来就含有部分小写字母那么该函数在遇到这些小写字母时是不是不做任何转换自己返回该小写字母值?请问我的理解是否正确?谢谢!!
一个虾米
...全文
56 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
shiyang1212 2008-03-27
  • 打赏
  • 举报
回复
谢谢各位
babyvox1999 2008-03-27
  • 打赏
  • 举报
回复
int tolower(int c);
tolower() converts the letter c to lower case, if possible.

If c is not an unsigned char value, or EOF, the behaviour of these functions is undefined.

RETURN VALUE
The value returned is that of the converted letter, or c if the conversion was not possible.
51365133 2008-03-27
  • 打赏
  • 举报
回复
yes
ryfdizuo 2008-03-27
  • 打赏
  • 举报
回复
right

64,662

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧