boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

00159.c (360B)


      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 void zfunc()
     19 {
     20    ((void (*)(void))0) ();
     21 }
     22 
     23 int main()
     24 {
     25    printf("%d\n", myfunc(3));
     26    printf("%d\n", myfunc(4));
     27 
     28    vfunc(1234);
     29 
     30    qfunc();
     31 
     32    return 0;
     33 }
     34 
     35 // vim: set expandtab ts=4 sw=3 sts=3 tw=80 :