#include<stdio.h>
#define LEN_DEST 8
void my_strncat(char *dest,char *src,int len_dest);
int main(){
char src[]={'5','6','7','8','9'};
char dest[LEN_DEST]={'1','2','3','4'};
my_strncat(dest,src,LEN_DEST);
fputs(dest,stdout);
return 0;}
//
void my_strncat(char *dest,char *src,int len_dest){
for(;*src&&--len_dest;)
if(!*dest)
*dest++=*src++;
else
dest++;
*dest=0;
}