Computer Programming Contest Preparation

ToolBox - Source for: 11/1124/f.c



/home/toolbox/public_html/solutions/11/1124/f.c
    1 #include <stdio.h>
    2 #include <string.h>
    3 #include <sys/types.h>
    4 #include <sys/stat.h>
    5 #include <fcntl.h>
    6 #include <stdlib.h>
    7 #include <math.h>
    8 #include <stdint.h>
    9 
   10 #define TRUE  (1 == 1)
   11 #define FALSE (1 != 1)
   12 
   13 #define DEBUG if (FALSE)
   14 #define MAX_LINE 133
   15 
   16 /* fprintf(stderr, "functionName: message", varslist); */
   17 
   18 /*
   19  *  Author: Isaac Traxler
   20  *    Date: 2014-10
   21  * Purpose: fun
   22  * Problem: 1124 - Celebrity Jeopardy
   23  */
   24 
   25 /*
   26  * This template reads data a specified number of times.
   27  */
   28 
   29 char line[MAX_LINE];
   30 
   31 int main ()
   32 {
   33     /* main */
   34     int t;
   35 
   36     fgets(line, MAX_LINE, stdin);
   37     t = ! feof(stdin);
   38     while (t)
   39         {
   40             /* while */
   41             printf("%s", line);
   42             fgets(line, MAX_LINE, stdin);
   43             t = ! feof(stdin);
   44         } /* while */
   45 
   46     return EXIT_SUCCESS;
   47 } /* main */
   48 
   49