Skip to content

Instantly share code, notes, and snippets.

@ed-flanagan
Last active December 16, 2015 18:59
Show Gist options
  • Save ed-flanagan/5481309 to your computer and use it in GitHub Desktop.
Save ed-flanagan/5481309 to your computer and use it in GitHub Desktop.
Spits out up to 140 characters
#include <stdio.h>
int main(int argc, char **argv)
{
int c, i = 0;
while ((c = getchar()) != EOF && i++ < 140)
putchar(c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment