Subversion Repositories Kolibri OS

Rev

Rev 9620 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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