2022-04-15 11:11:49 +02:00
|
|
|
#include <ctype.h>
|
2021-04-27 18:33:31 +02:00
|
|
|
#include <errno.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
2022-04-15 11:11:49 +02:00
|
|
|
#include <sys/ksys.h>
|
2021-04-27 18:33:31 +02:00
|
|
|
|
2022-04-15 11:11:49 +02:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
char hello1[] = "Hello, KolibriOS!";
|
2021-04-27 18:33:31 +02:00
|
|
|
char hello2[20];
|
|
|
|
memcpy(hello1, hello2, strlen(hello1));
|
2022-04-15 11:11:49 +02:00
|
|
|
if (!__strcmp(hello1, hello2)) {
|
2021-04-27 18:33:31 +02:00
|
|
|
printf("memcpy: Successfully!\n");
|
|
|
|
return 0;
|
2022-04-15 11:11:49 +02:00
|
|
|
} else {
|
2021-04-27 18:33:31 +02:00
|
|
|
printf("memcpy: Failure\n");
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|