Changing function declaration and definition syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Im new to gcc I would love to try out by changing the function
declaration and syntax for C. Initially the syntax is:

Declaration:
int foo (int a, int b);

Definition:
int foo (int a, int b) {
    return a + b;
}

I want it to be:

foo (int a, int b) int;

foo (int a, int b) int {
     return a + b;
}

What files do I have to modify and their respective functions? I am using
gcc 13.0.0



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux