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