Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include <errno.h>
  2. #include <sys/ksys.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include <ctype.h>
  6.  
  7. int main(int argc, char** argv){
  8.     char hello1[]="Hello, KolibriOS!";
  9.     char hello2[20];
  10.     memcpy(hello1, hello2, strlen(hello1));
  11.     if(!_ksys_strcmp(hello1, hello2)){
  12.         printf("memcpy: Successfully!\n");
  13.         return 0;
  14.     } else{
  15.         printf("memcpy: Failure\n");
  16.         return -1;
  17.     }
  18. }
  19.