strcat字符串拼接函数
2017-07-21 17:42
369 查看
摘自linux内核4.11.1源码string.c
linux/lib/string.c
Copyright (C) 1991, 1992 Linus Torvalds
头文件:#include <string.h>
作用:字符串拼接函数,将字符串src拼接至dest目标存储区
参数:
dest:目标存储区
src:源字符串
返回值:
dest 目标存储区的地址
linux/lib/string.c
Copyright (C) 1991, 1992 Linus Torvalds
头文件:#include <string.h>
作用:字符串拼接函数,将字符串src拼接至dest目标存储区
参数:
dest:目标存储区
src:源字符串
返回值:
dest 目标存储区的地址
/** * strcat - Append one %NUL-terminated string to another * @dest: The string to be appended to * @src: The string to append to it */ char *strcat(char *dest, const char *src) { char *tmp = dest; while (*dest) dest++; while ((*dest++ = *src++) != '\0') ; return tmp; }
相关文章推荐
- 自定义字符串拼接函数my_strcat()
- 字符串拼接函数strcat的实现 while(*p++ !='\0')跳出后,p究竟指向哪? C/C++求职面试必备考点(三)
- C语言,字符串的拼接.strcat()和sprintf()函数之间的比较
- strcat();字符串拼接函数
- 关于VC++6.0中的字符串拼接函数strcat
- 关于VC++6.0中的字符串拼接函数strcat
- 关于VC++6.0中的字符串拼接函数strcat
- 在8位单片机上面实现字符串的拼接(单片机上strcat的函数的实现)
- LoadRunner字符串拼接函数strcat
- matlab 字符串拼接的3个方式:[]、strcat、sprintf
- 字符串处理函数gets()、puts()、strcmp()、strlen()、strcpy()、strcat()-C语言
- 部分字符串库函数的重写(源码) toupper,memcpy,memmove,memset,memchr,strlen,strcpy,strcat,strcmp,strchr
- JSTL fn函数中字符串拼接
- c语言,strcat(),字符串拼接
- 字符串连接(strcat)的函数
- 17、SQL Server:动态SQL拼接字符串,使用变量,函数等5
- Jquery的each函数拼接字符串传参问题
- js拼接字符串函数名称中带参数引号问题
- C语言strcat()函数:连接字符串
- 字符串处理函数(strcat、strcpy等)为什么要返回值