#include void echo(void) { char buf[4]; gets(buf); puts(buf); } int main() { printf("Type a string:"); echo(); return 0; }