Re: Function with two or more entry point

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

 



The most similar is probably this:

> #include <stdio.h>
>
> void test(int which)
> {
>   switch (which)
>   {
>    case 1:
>     printf("print1\n");
>    case 2:
>     printf("print2\n");
>   }
> }
>
> int main ()
> {
>   test(1);
>   test(2);
>
>   return 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