olibc/src/tests/string/strcpy.c

12 lines
198 B
C
Raw Normal View History

2021-12-19 08:35:56 +00:00
// This is test program for strcpy function from string.h
#include <string.h>
#include <stdio.h>
int main() {
char s1[] = "FIRSTT";
char s2[] = "SECOND";
puts(strcpy(s1, s2));
return 0;
}