Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created December 8, 2015 15:13
Show Gist options
  • Select an option

  • Save KristianLyng/aa671751f08b7ea2ff59 to your computer and use it in GitHub Desktop.

Select an option

Save KristianLyng/aa671751f08b7ea2ff59 to your computer and use it in GitHub Desktop.
kly@leia:~$ cat foo.c
#include <stdio.h>
int main(char *b, char **a)
{
b = (int) b > 1 ? a[1] : "meh";
do {
putchar(*b - 32);
} while (*++b || !putchar('\n'));
}
kly@leia:~$ ./a.out
MEH
kly@leia:~$ ./a.out foobar
FOOBAR
kly@leia:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment