Code:
// Get username
printf("What was your name again? ");
// Get username using fgets, this is how to do it without a security error
fgets(name, 15, stdin);
// End get username
// The user hears someone calling their name, using variable called name
printf("Mysterious Voice %s %s \n", name, name);
My expected output is "Mysterious Voice name name", my actual output is "Mysterious Voice name
name
"
Anyone know why and how to fix it. name is a char