- 论坛徽章:
- 0
|
/**
* strcpy - Copy a %NUL terminated string
* @dest: Where to copy the string to
* @src: Where to copy the string from
*/
char * strcpy(char * dest,const char *src)
{
char *tmp = dest;
while ((*dest++ = *src++) != '\0')
/* nothing */;
return tmp;
} |
这个贴子也能反映出,写搞质量C/C++的人在一知半解的情况下,自我感觉却非常良好。吐血的是还要出来误人子弟 |
|