编写如按标准字符串操作函数

时间:2013-02-10 15:05:44
【文件属性】:
文件名称:编写如按标准字符串操作函数
文件大小:2KB
文件格式:C
更新时间:2013-02-10 15:05:44
字 符 串 :他们最多对参数字符串中的前n个字符进行操作。例如,函数strncpy(s, t, n)将t中最多前n个字符复制到s中。 (注:通过使用命令行参数传递给程序的方法) (1) void strncpy(s,t,n); 1 (2) void strncmp(s,t,n); 2 (3) int strlen(s); 3 (4) int strncat(s,t,n); 4

网友评论