(First of all, note that you have to define the _ARGS_ macro and ANSI_PROTO yourself. It's not predefined.)

Now, you can define the sum function this way :

Declaration :
Code: C
int sum _ARGS_((int a, int b));

Definition :
Code: C
int sum
    (int a, int b)
    (a, b)
    int a;
    int b;

I hope it's clear to you now.

Last edited by SaswatPadhi; 15Jun2009 at 18:16..