C examples for String:String Console Input
Demonstrates using the gets_s() library function.
#include <stdio.h> int main( void ) { char input[257]; puts("Enter some text, then press Enter: "); gets_s(input);/*from w w w. ja v a2s .com*/ printf("You entered: %s\n", input); return 0; }