modernc.org/ccgo/v3@v3.16.14/lib/testdata/tcc-0.9.27/tests/tests2/07_function.c (about)

     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 :