#include <stdio.h>

/**
 * Terry Harvey CIS 105 Section 010 TA Tina Weymouth
 *  Demonstration program for fgets
 **/

int main(){

    char word[BUFSIZ];
    char word2[20];
    printf("Enter some stuff: ");
    fgets(word, 20, stdin);

    fpurge(stdin);// try commenting this line out and entering something
                  // longer than 20 characters

    printf("%s\n", word);

    printf("\n more: ");
    scanf("%s", word2);


    printf("%s\n", word2);
    return 0;

}


