14 lines
225 B
C
14 lines
225 B
C
|
char* strcat(char* strDest, const char* strSource)
|
||
|
{
|
||
|
char* res;
|
||
|
res=strDest;
|
||
|
while (*strDest!='\0') strDest++;
|
||
|
while (*strSource!='\0')
|
||
|
{
|
||
|
*strDest=*strSource;
|
||
|
strDest++;
|
||
|
strSource++;
|
||
|
}
|
||
|
return res;
|
||
|
}
|