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.

Why is the gets function so dangerous that it should not be used?

When I try to compile C code that uses the gets() function with GCC, I get this warning: (.text+0x34): …

c fgets buffer-overflow gets
C - scanf() vs gets() vs fgets()

I've been doing a fairly easy program of converting a string of Characters (assuming numbers are entered) to an Integer. …

c scanf fgets gets
What's the difference between gets and scanf?

If the code is scanf("%s\n",message) vs gets(message) what's the difference?It seems that both of them …

c input scanf gets
scanf("%[^\n]s",a) vs gets(a)

I have been told that scanf should not be used when user inputs a string. Instead, go for gets() by …

c scanf gets
Implicit declaration of 'gets'

I understand that an 'implicit declaration' usually means that the function must be placed at the top of the program …

c linux gets
Take user input with JavaScript in the console

I need to get user input when running a .js in a console with spidermonkey like this: $ js myprogram.js …

javascript console spidermonkey gets
How to use "gets" function in C++ after previous input?

I tried to input data with gets() function, but whenever program execution get to the the lien with the gets, …

c++ string gets
Input in C. Scanf before gets. Problem

I'm pretty new to C, and I have a problem with inputing data to the program. My code: #include <…

c input scanf gets
Gets() not working

Im trying to use gets() to get a string from the user but the program seems to be passing right …

c string gets
Safe Alternative to gets

When I try to compile C code that uses the gets() function with GCC, I get this warning: (.text+0x34): …

c++ c fgets gets