aboutsummaryrefslogtreecommitdiff
path: root/1-17_over-80.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--1-17_over-80.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/1-17_over-80.c b/1-17_over-80.c
index dcf7058..53f00ce 100644
--- a/1-17_over-80.c
+++ b/1-17_over-80.c
@@ -2,21 +2,6 @@
#define MINLENGTH 80
-/* Read as much as possible of a string and return its length. */
-int get_line(char s[]) {
- int c, i;
-
- for (i = 0; i < MINLENGTH - 1 && (c = getchar()) != EOF; ++i) {
- s[i] = c;
- }
- if (c == '\n') {
- s[i] = c;
- ++i;
- }
- s[i] = '\0';
- return i;
-}
-
int main() {
// longline is used as a boolean that tells us if it's a line worth printing
int longline = 0;