Skip to content

Instantly share code, notes, and snippets.

@rafkhan
Created December 19, 2013 08:20
Show Gist options
  • Save rafkhan/8036048 to your computer and use it in GitHub Desktop.
Save rafkhan/8036048 to your computer and use it in GitHub Desktop.
3 in the morning
Writing a stupid haiku
So I pass English
12 words per haiku
200 for the assignment
So 16 haikus
I don't think I can
Write 16 haikus about
Writing these haikus
This is the fourth one
So if I quadruple this
That means I'll be done
/*
* If it means anything, this is actually compilable C source code, and will
* almost certainly run on any computer made in the last 2 decades,
*
* It's pretty useless, it just prints out the last character in whatever input sequence
* it receives as command line arguments.
*/
#include <stdio.h>
#include <string.h>
int main(int right_here, char** is_where_the_program_starts) {
char* where_the_poem_starts = is_where_the_program_starts[right_here - 1];
char but_it_also_ends = where_the_poem_starts[strlen(where_the_poem_starts) - 1];
printf("%c\n", but_it_also_ends);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment