9511_workbook

solved exercises from algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
guia03/ex01.c (252B)
   1 #include <stdio.h>
   2 
   3 #define MAX_LEN 100
   4 
   5 
   6 int main(void) {
   7 
   8     char s[MAX_LEN];
   9 
  10     printf("> ");
  11     scanf("%s", s);
  12     puts(s);
  13 
  14     printf("> ");
  15     /* gets(s); removed from std C11 because it's very unsecure */
  16     fgets(s, MAX_LEN, stdin);
  17     puts(s);
  18 
  19     return 0;
  20 }