自写字符串连接函数strcat
来源:互联网 发布:js splice函数 编辑:程序博客网 时间:2024/06/06 14:14
#include<stdio.h>#define STRLEN 100char *mystrcat(char *dest,const char *src){char *ret = dest;while(*dest != '\0'){dest++;}while(*dest++ = *src++){;}return ret;}int main(){char dest[STRLEN] = "andef";char *src = "ghi";printf("%s\n",mystrcat(dest,src));return 0;}
0 0
- 自写字符串连接函数strcat
- 连接字符串strcat()函数
- 字符串的连接strcat(自实现)
- strcat函数——字符串连接函数
- 写一个函数,将两个字符串连接,即编写一strcat函数
- 连接两个字符串不用strcat函数
- C语言strcat()函数:连接字符串
- 两个字符串连接,不用strcat函数
- 自己实现字符串连接函数strcat
- C语言strcat()函数:连接字符串
- 字符串连接(strcat)的函数
- C语言strcat()函数:连接字符串
- C语言strcat()函数:连接字符串
- C语言strcat()函数:连接字符串
- C语言strcat()函数:连接字符串
- strcat 字符串连接
- 使用strcat连接字符串
- 写个strcat函数
- day 019 UITextField UIAlertView UIActionSheet
- 看了看书
- UIView和CALayer的区别 说的比较清楚了
- mysql的limit优化
- 函数指针学习2
- 自写字符串连接函数strcat
- python 实现选择排序
- Posts Tagged 【dfs】 Combinations
- /proc/$PID/status
- move_to_user_mode()函数分析
- XSS跨站测试代码大全
- 孤儿进程与僵尸进程
- 一阶逻辑等值演算
- 写给女友的JS教程—之JS闭包