Subversion Repositories Kolibri OS

Rev

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

  1. #include <sys/ksys.h>
  2. #include <stdio.h>
  3. #include <limits.h>
  4.  
  5. char* test_string1 = "Hello world!";
  6. int a, b;
  7.  
  8. int main(int argc, char** argv){
  9.     sscanf("43 53","%d %d",&a, &b);
  10.     printf("(43 53) = (%d %d)\n", a, b);
  11.     printf("Hello world! = %s\n", test_string1);
  12.     printf("345.358980 = %f\n", 345.35898);
  13.     printf("345 = %d\n", (int)345.35898);
  14.     printf("ff = %x\n", 255);
  15.     printf("-1 = %d\n", UINT_MAX);
  16.     printf("5A-4B-N$ = %s%c-%u%c-N%c\n", "5", 'A', 4, 'B', '$');
  17.     puts("Done!");
  18.     return 0;
  19. }
  20.