home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
tyc
/
list10_5.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-16
|
277b
|
15 lines
/* Demonstrates using the gets() library function. */
#include <stdio.h>
/* Allocate a character array to hold input. */
char input[81];
main()
{
puts("Enter some text, then press Enter");
gets(input);
printf("You entered %s", input);
}