字符串比较函数大全.docVIP

  • 15
  • 0
  • 约9.69千字
  • 约 24页
  • 2017-09-01 发布于浙江
  • 举报
字符串比较函数大全

字符串比较函数 2009-05-02 12:06:17| 分类: 技术|字号 订阅 函数名: stpcpy 功 能: 拷贝一个字符串到另一个 用 法: char *stpcpy(char *destin, char *source); 程序例: #include stdio.h #include string.h int main(void) { char string[10]; char *str1 = abcdefghi; stpcpy(string, str1); printf(%s\n, string); return 0; } 函数名: strcat 功 能: 字符串拼接函数 用 法: char *strcat(char *destin, char *source); 程序例: #include string.h #include stdio.h int main(void) { char destination[25]; char *blank = , *c = C++, *Borland = Borland; strcpy(destination, Borland); strcat(destination, blank); strcat(destination, c); printf(%s\n, destination); r

文档评论(0)

1亿VIP精品文档

相关文档