linux函数.pptVIP

  • 1
  • 0
  • 约1.29万字
  • 约 45页
  • 2017-03-14 发布于江苏
  • 举报
linux函数

strlen:统计字符串string中字符的个数   头文件: string.h 函数定义: int strlen( const char string[] ); 功能:统计字符串string中字符的个数 strcpy:将字符串source拷贝到字符串destination中  头文件: string.h 函数定义: :strcpy(char destination[], const char source[]); 功能:将字符串source拷贝到字符串destination中 6 字符串处理函数 * * C 语言函数培训 strcat:将字符串source接到字符串target的后面 头文件: string.h 函数定义:strcat(char target[], const char source[]); 功能:将字符串source接到字符串target的后面 strcmp:比较两个字符串firststring和secondstring 头文件: string.h 原型:int strcmp(const char firststring[], const char secondstring); 功能:比较两个字符串firststring和secondstring 6 字符串处理函数 * * C 语言函数培训 1. 计算绝对值 abs: 计算整形数的绝对值 头文件: s

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档