MIPI_AdvancedC_FRTK/Lect2/16-17.c
2024-11-14 08:45:50 +03:00

16 lines
250 B
C

#include <stdio.h>
char *strcpy(char *dst, const char *src ) {
char *d = dst;
while (*dst++ = *src++);//!=0
return d;
}
int main()
{
char a[]="Hello!", b[7];
a[6] = '*';
strcpy(b,a);
printf("b = %s\n",b);
return 0;
}