void Init() {
    fflush(stdin);
    printf("Input the cup name:");
    scanf("%[^\n]s", array_of_water[indexx].name); 
    array_of_water[indexx].water = rand() % 31 + 20;
}
"%[^\n]s"
I know it will read the string until it encounters newline. But, How to make exception for the first char to be not newline.
If I press enter on my keyboard the string will save \n as its element. But I don't want that, I want to let user enter except for newline itself. Besides that, how the format specifiers change if I want read until encounter alphabet/number/other symbols?
 
     
    