C语言字符串函数大全.docVIP

  • 1
  • 0
  • 约1.07万字
  • 约 20页
  • 2019-12-23 发布于湖北
  • 举报
C语言字符串函数大全 函数名: 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); pri

文档评论(0)

1亿VIP精品文档

相关文档