Last active
December 16, 2015 18:59
-
-
Save ed-flanagan/5481309 to your computer and use it in GitHub Desktop.
Spits out up to 140 characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode 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