Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5062864
  • 博文数量: 553
  • 博客积分: 13864
  • 博客等级: 上将
  • 技术积分: 11041
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-28 21:25
个人简介

个人Blog: hhktony.com

文章分类

全部博文(553)

文章存档

2015年(1)

2014年(2)

2013年(12)

2012年(384)

2011年(154)

分类: LINUX

2012-01-09 05:00:28

VC6中:
//仅核心代码:
if ( (c >= 'a') && (c <= 'z') )
                c = c - ('a' - 'A');
            return c;

linux中:
#define islower(c) ((_ctype+1)[c]&(_L))
#define toupper(c) (_ctmp=c,islower(_ctmp)?_ctmp-('a'-'A'):_ctmp)

阅读(3505) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~