2006-09-07 16:14:53 +02:00
|
|
|
char* strncat(char* strDest,const char* strSource,int count)
|
|
|
|
{
|
|
|
|
char* res;
|
|
|
|
res=strDest;
|
2006-11-21 13:36:25 +01:00
|
|
|
while (*strDest++) ;
|
|
|
|
while(count-->0)
|
2006-09-07 16:14:53 +02:00
|
|
|
{
|
2006-11-21 13:36:25 +01:00
|
|
|
if(*strDest++ = *strSource++) continue;
|
|
|
|
return(res);
|
2006-09-07 16:14:53 +02:00
|
|
|
}
|
2006-11-21 13:36:25 +01:00
|
|
|
*strDest = 0;
|
2006-09-07 16:14:53 +02:00
|
|
|
return res;
|
2006-11-21 13:36:25 +01:00
|
|
|
}
|