this program with this value : ABCDEF is ok at the frist
but again when you enter a value with space,like : ABC DEF the program works wrong!!!! while loop ignores scanf the second time What am I doing wrong?!
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main(){
    bool checkSrc = false;
    bool checkDst = false;
    while (!checkSrc && !checkDst)
    {
    char ins[10];
    printf("White Player : ");
    scanf("%s",&ins);
    }
}
 
     
    