Rev 145 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
145 | halyavin | 1 | char* strncat(char* strDest,const char* strSource,int count) |
2 | { |
||
3 | char* res; |
||
4 | res=strDest; |
||
215 | victor | 5 | while (*strDest++) ; |
6 | while(count-->0) |
||
145 | halyavin | 7 | { |
215 | victor | 8 | if(*strDest++ = *strSource++) continue; |
9 | return(res); |
||
145 | halyavin | 10 | } |
215 | victor | 11 | *strDest = 0; |
145 | halyavin | 12 | return res; |
215 | victor | 13 | } |