char buf[1000]; gets(buf); // No bounds checking
char buf[1000]; fgets(buf, sizeof(buf), stdin); // Check for size