НЛ
Николай Лепёшкин
Написать и протестировать аналог функции strncat(). Язык С
#include
#include
#include
void main(){
char *strncat(s1,s2,n);
char *s1, *s2;
int n=0;
char destination[25];
char *source="structured ";
scanf_s("%d",&n);
strcpy(destination," programming ");
strncat(destination, source, n);
printf("%s\n", destination);
_getch();
}
Посмотрите пожалуйста, что там подправить может