Skip to content

Instantly share code, notes, and snippets.

#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <stdio.h>
void sig_handler(int sig) {exit(0);};
int main () {
signal(SIGTERM,sig_handler);
pid_t pid_v;
@Lerc
Lerc / jmpabuse.c
Created March 24, 2012 20:19
A simple string unscrabler using a turing machine inside a single expression.
#include <stdio.h>
#include <setjmp.h>
int J(jmp_buf x, int y) {
longjmp(x,y);
return 0;
}
int main(int argc, char **argv)
{