char* strcat(char* dest, char* src)
{
if(dest == NULL || src == NULL)
return NULL;
char *pdest = dest;
char *psrc = src;
while(*pdest++ != '\0')
;
pdest--;
while((*pdest++ = *psrc++) != '\0')
;
return dest;
}
本文地址:http://com.8s8s.com/it/it26034.htm