没有合适的资源?快使用搜索试试~ 我知道了~
首页Linux C函数参考手册_带书签_非常清晰.pdf
资源详情
资源评论
资源推荐

Linux C 函数参考

Linux公社(LinuxIDC.com)于2006年9月25日注册并开通网站,Linux现在已经成为一种广受关注和支持的一种操作系统,IDC是互联网数据
中心,LinuxIDC就是关于Linux的数据中心。
LinuxIDC.com提供包括Ubuntu,Fedora,SUSE技术,以及最新IT资讯等Linux专业类网站。
并被收录到Google 网页目录-计算机 > 软件 > 操作系统 > Linux 目录下。
Linux公社(LinuxIDC.com)设置了有一定影响力的Linux专题栏目。
包括:
Ubuntu专题
Fedora专题
RedHat专题
SUSE专题
红旗Linux专题
Android专题
Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。
本站带宽由[6688.CC]友情提供
Copyright © 2006-2011 Linux公社 All rights reserved

isalnum(测试字符是否为英文或数字)
相关函数
表头文件
定义函数
函数说明
返回值
附加说明
范例
isalpha,isdigit,islower,isupper
#include<ctype.h>
int isalnum (int c)
检查参数 c 是否为英文字母或阿拉伯数字,在标准 c 中相当于使用
(isalpha( c )|| isdigit( c ))做测试。
若参数 c 为字母或数字,则返回 TRUE,否则返回 NULL( 0 )。
此为宏定义,非真正函数。
/* 找出 str 字符串中为英文字母或数字的字符 */
#include < ctype.h>
main()
{
char str[]=”123c@#FDsP[e?”;
int i;
for (i=0;str[i]!=0;i++ )
if ( isalnum(str[i])) printf(“%c is an alphanumeric character\n”,str[i]);
}
执行
1 is an apphabetic character
2 is an apphabetic character
3 is an apphabetic character
c is an apphabetic character
F is an apphabetic character
D is an apphabetic character
s is an apphabetic character
P is an apphabetic character
e is an apphabetic character

isalpha (测试字符是否为英文字母)
相关函数
表头文件
定义函数
函数说明
返回值
附加说明
范例
isalnum,islower,isupper
#include<ctype.h>
int isalpha (int c)
检查参数 c 是否为英文字母,在标准 c 中相当于使用 (isupper(c)
||islower(c))做测试。
若参数 c 为英文字母,则返回 TRUE,否则返回 NULL( 0 )。
此为宏定义,非真正函数
/* 找出 str 字符串中为英文字母的字符*/
#include <ctype.h>
main()
{
char str[]=”123c@#FDsP[e?”;
int i;
for (i=0;str[i]!=0;i++)
if(isalpha(str[i])) printf(“%c is an alphanumeric character\n”,str[i]);
}
执行
c is an apphabetic character
F is an apphabetic character
D is an apphabetic character
s is an apphabetic character
P is an apphabetic character
e is an apphabetic character

isascii(测试字符是否为 ASCII 码字符)
相关函数
表头文件
定义函数
函数说明
返回值
附加说明
范例
iscntrl
#include <ctype.h>
int isascii(int c);
检查参数 c 是否为 ASCII 码字符,也就是判断 c 的范围是否在 0 到
127 之间。
若参数 c 为 ASCII 码字符,则返回 TRUE,否则返回 NULL ( 0 )。
此为宏定义,非真正函数。
/* 判断 int i 是否具有对映的 ASCII 码字符 */
#include<ctype.h>
main()
{
int i;
for(i=125;i<130;i++)
if(isascii(i))
printf("%d is an ascii character:%c\n",i,i);
else
printf("%d is not an ascii character\n",i);
}
执行
125 is an ascii character:}
126 is an ascii character:~
127 is an ascii character:
128 is not an ascii character
129 is not an ascii character
剩余222页未读,继续阅读



















0o088
- 粉丝: 3
- 资源: 23
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- ARM Cortex-A(armV7)编程手册V4.0.pdf
- ABB机器人保养总结解析.ppt
- 【超详细图解】菜鸡如何理解双向链表的python代码实现
- 常用网络命令的使用 ipconfig ping ARP FTP Netstat Route Tftp Tracert Telnet nslookup
- 基于单片机控制的DC-DC变换电路
- RS-232接口电路的ESD保护.pdf
- linux下用time(NULL)函数和localtime()获取当前时间的方法
- Openstack用户使用手册.docx
- KUKA KR 30 hA,KR 60 hA机器人产品手册.pdf
- Java programming with JNI
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0