/* getsputs.c -- using gets() and puts() */ #include #define STLEN 81 int main(void) { char words[STLEN]; puts("Enter a string, please."); gets(words); // typical use printf("Your string twice:\n"); printf("%s\n", words); puts(words); puts("Done."); return 0; }