Subversion Repositories Kolibri OS

Rev

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

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