Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6433 siemargl 1
#include 
2
 
3
char* strncat(char* strDest,const char* strSource,size_t count)
145 halyavin 4
{
5
	char* res;
6
	res=strDest;
6433 siemargl 7
	while (*strDest) strDest++;
8
	while(count-- > 0)
145 halyavin 9
	{
6433 siemargl 10
	    if((*strDest++ = *strSource++)) continue;
215 victor 11
		return(res);
145 halyavin 12
	}
215 victor 13
	*strDest = 0;
145 halyavin 14
	return res;
6433 siemargl 15
}