I used to use rewind() function to clear the input buffer in the Visual Studio 2019, But I can not use rewind() function in the GCC compiler. (Simple Example >>)
scanf("%s",temp);
rewind(stdin) /* Are there any ways to clear the input buffer?*/
Which function should I use to clear the input buffer in the GCC compiler?
Are there any good ways to clear the input buffer without using some functions?