Skip to content

Instantly share code, notes, and snippets.

@ichiban
Created November 9, 2011 04:19
Show Gist options
  • Save ichiban/1350361 to your computer and use it in GitHub Desktop.
Save ichiban/1350361 to your computer and use it in GitHub Desktop.
これ聴きながら仕事してます
$ cat > kiku.c
#include <pthread.h>
char c;f(){while(1)c=~getchar();}main(t,p){pthread_create(&p,NULL,f,NULL);for(t=0;;t++)putchar(t>>~c|t>>5|t>>1000-c|t>>c);}
$ make kiku
cc kiku.c -o kiku
kiku.c: In function ‘main’:
kiku.c:2: warning: passing argument 1 of ‘pthread_create’ from incompatible pointer type
kiku.c:2: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type
$ sudo tcpdump | ./kiku | sox -traw -r8k -c1 -eunsigned -b8 - -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment