This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Function with two or more entry point
- From: Ángel González <keisial at gmail dot com>
- To: sztfg at yandex dot ru
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 12 Mar 2013 22:12:45 +0100
- Subject: Re: Function with two or more entry point
- References: <250151363119434@web23h.yandex.ru>
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;
> }