fgets in C Programming


fgets(asked_hotel, sizeof(asked_hotel)-1, stdin);
asked_hotel[strlen(asked_hotel)-1] = '\0';
//scanf("\n%99s", &asked_hotel);
printf("The hotels matching what you searched are:\n\n");
Last edited on
Could you say above all what is your problem?
Topic archived. No new replies allowed.