About 18,500,000 results
Open links in new tab
  1. Why is the gets function so dangerous that it should not be used?

    Why is gets() dangerous The first internet worm (the Morris Internet Worm) escaped about 30 years ago (1988-11-02), and it used gets() and a buffer overflow as one of its methods of …

  2. How to use "gets" and "gets.chomp" in Ruby - Stack Overflow

    I learned that gets creates a new line and asks the user to input something, and gets.chomp does the same thing except that it does not create a new line. gets must return an object, so you …

  3. c - Disable warning: the `gets' function is dangerous in GCC …

    I am using the function gets () in my C code. My code is working fine but I am getting a warning message (.text+0xe6): warning: the `gets' function is dangerous and should not be used.

  4. What is the difference between gets () and getch ()?

    Feb 20, 2014 · The gets function is used for returning zero or more characters from the standard (console) input. Edit 1: Depending on your compiler implementation, the getch function may be …

  5. c - warning:gets function is dangerous - Stack Overflow

    When i use gets function,gcc gives me a warning: warning:the `gets' function is dangerous and should not be used. Why gets and puts function dangerous?

  6. c - String input in array using gets function - Stack Overflow

    You can use fgets to read a line of input, and then sscanf to extract the integer from the line in memory. fgets, unlike gets, leaves the '\n' in your array, so you'll have to deal with that (though …

  7. gets () function in C - Stack Overflow

    Dec 3, 2010 · The Early Bug gets () the Internet Worm The problems in C are not confined to just the language. Some routines in the standard library have unsafe semantics. This was …

  8. c - Why gets () is deprecated? - Stack Overflow

    Mar 15, 2017 · gets may cause buffer overflow, since it don't consider length of the data. More details are here : gets () function in C deprecated message means, this function is marked as …

  9. What's the difference between gets and scanf? - Stack Overflow

    Oct 28, 2014 · gets - Reads characters from stdin and stores them as a string. scanf - Reads data from stdin and stores them according to the format specified int the scanf statement like %d, …

  10. c - fgets instructions gets skipped.Why? - Stack Overflow

    Whenever I do a scanf before a fgets the fgets instruction gets skipped. I have come accross this issue in C++ and I remember I had to had some instrcution that would clear the stdin buffer or …