This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Function with two or more entry point


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]