About 21,800,000 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. What is gets () equivalent in C11? - Stack Overflow

    Oct 15, 2012 · The gets () function does not perform bounds checking, therefore this function is extremely vulnerable to buffer-overflow attacks. It cannot be used safely (unless the program …

  4. C - scanf () vs gets () vs fgets () - Stack Overflow

    Jul 10, 2015 · And the difference between gets/scanf and fgets is that gets(); and scanf(); only scan until the first space ' ' while fgets(); scans the whole input. (but be sure to clean the buffer …

  5. c++ - How to use gets () in cpp - Stack Overflow

    Dec 25, 2017 · These days I am learning strings and arrays in cpp. In my school they taught us to take a string as user input, one have to use gets() but it isn't working on any of the compilers I …

  6. Why is gets() not consuming a full line of input? - Stack Overflow

    Nov 20, 2022 · Take a look at gets() reference Get string from stdin Reads characters from the standard input (stdin) and stores them as a C string into str until a newline character or the end …

  7. 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 …

  8. c - gets () does not work - Stack Overflow

    Oct 1, 2009 · I have a program written in C and it calls gets() from a switch when a user chooses the option of 3. Here is my code. It does not seem to wait to wait for the user to input …

  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 - puts (), gets (), getchar (), putchar () function simultaneously ...

    Feb 23, 2021 · I have a confusion related to using puts(), gets(), putchar() and getchar() simultaneously use in the code. When I have run the below code, it is doing all steps: taking …