Re: Function with two or more entry point

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

 



The most similar (but without function):

#include <stdio.h>

int main ()
{
  void *goto_after;
  
  ///////////////////////
  if (0)
  {
    test_print1:
      printf("print1\n");
      
    test_print2:
      printf("print2\n");

    goto *goto_after;
  }
  ///////////////////////
  
  goto_after = &&label1; goto test_print1; label1: 
  goto_after = &&label2; goto test_print2; label2: 
  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