equal
deleted
inserted
replaced
1 #include <string.h> |
1 #include <string.h> |
2 #include <stdio.h> |
2 #include <stdio.h> |
3 #include <stdlib.h> |
3 #include <stdlib.h> |
4 |
4 |
5 // Since gets() is insecure and produces lots |
5 // Since gets() is insecure and produces lots |
6 // of warnings, thereofre I use my own input |
6 // of warnings, therefore I use my own input |
7 // function instead. |
7 // function instead...of course, why not? |
8 int i; |
8 int i; |
9 char ch; |
9 char ch; |
10 |
10 |
11 void get_line(char *dst) { |
11 void get_line(char *dst) { |
12 char buffer[8]; |
12 char buffer[8]; |