Skip to content

Instantly share code, notes, and snippets.

@vault
Created September 21, 2012 02:41
Show Gist options
  • Save vault/3759464 to your computer and use it in GitHub Desktop.
Save vault/3759464 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void* justwait(int selector)
{
if (selector)
{
DEARGOD:
printf("%d\n", 2+2);
return NULL;
}
else
{
return &&DEARGOD;
}
}
void print4(void * WHYGODWHY)
{
goto *WHYGODWHY;
}
int main()
{
void * oops = justwait(0);
print4(oops);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment