c语言字符串操作大全

函数名: strcpy

功 能: 拷贝一个字符串到另一个

用 法: char *stpcpy(char *destin, char *source);

程序例:

#include <stdio.h>

#include <string.h>

int main(void)

{

char string[10];

char *str1 = "abcdefghi";

strcpy(string, str1);

printf("%s\n", string);

return 0;

}

函数名: strcat

功 能: 字符串拼接函数

用 法: char *strcat(char *destin, char *source);

程序例:

你可能喜欢

  • C语言字符串
  • c语言字符串函数
  • C语言函数
  • 语言分析
  • C语言经典算法
  • 使用技巧

c语言字符串操作大全相关文档

最新文档

返回顶部