Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2.  
  3. int myfunc(int x)
  4. {
  5.    return x * x;
  6. }
  7.  
  8. void vfunc(int a)
  9. {
  10.    printf("a=%d\n", a);
  11. }
  12.  
  13. void qfunc()
  14. {
  15.    printf("qfunc()\n");
  16. }
  17.  
  18. int main()
  19. {
  20.    printf("%d\n", myfunc(3));
  21.    printf("%d\n", myfunc(4));
  22.  
  23.    vfunc(1234);
  24.  
  25.    qfunc();
  26.  
  27.    return 0;
  28. }
  29.  
  30. // vim: set expandtab ts=4 sw=3 sts=3 tw=80 :
  31.