progs/C2.c
changeset 546 3d1f65e43065
parent 215 06cc38192865
equal deleted inserted replaced
545:0697622fb181 546:3d1f65e43065
     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];