Top "Gets" questions

Anything related to C or C++ standard library functions gets (C) or std::gets (C++). These functions are used to read a sequence of characters from an input stream and to write it into a character buffer as a string.

Disable warning: the `gets' function is dangerous in GCC through header files?

I am using the function gets() in my C code. My code is working fine but I am getting a …

c gcc header warnings gets
Question about "gets" in ruby

I was wondering why when I'm trying to gets to different inputs that it ignores the second input that I …

ruby input gets
Difference between fgets and gets

What is the difference between fgets() and gets()? I am trying break my loop when the user hits just "enter". …

c scanf fgets gets
Error in getting input in structure using gets()

I am making a program to take input in teacher structure but there is unknown run time error , here is …

c arrays structure gets
Why is implicit declaration of gets() not allowed in C99?

I am starting to learn programming in C language the book I am refering to code shows some source code …

c clang c99 cs50 gets
Program doesn't execute gets() after scanf(), even using fflush(stdin)

After wasting too much time searching why my program doesn't execute gets() after using scanf(), I found a solution which …

c scanf gets fflush
gets() only taking input once in while loop

I am new to C and working through some exercises, but having trouble with gets() in a while loop. In …

c gets
Is there any function to get an unlimited input string from standard input

The condition is: I want to input a line from standard input, and I don't know the size of it, …

c input char scanf gets
gets() problem in C

I wrote the following code: #include <stdio.h> #include <stdlib.h> #include <string.h> #…

c gcc compilation gets
What should I use, instead of gets?

There is a finished project, which is not mine. It works well, but if I build, I get a warning: …

c gets