About 54 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 dramatically …

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

  3. 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 propagating from …

  4. Why was the gets function removed instead of just changing its ...

    Jun 20, 2025 · 2 Why was the gets function removed instead of just changing its signature? At least in part because removing gets() from the language specification does not mean that implementations …

  5. 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 the input, printing the …

  6. 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 runs in …

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

    Nov 20, 2022 · Since gets () or fgets () is getting skipped due to an already present '\n' from previous inputs in stdin, calling getchar () would lead to itself getting skipped instead of gets () or fgets () or …

  8. Какая разница между puts и printf или gets и scanf?

    Apr 21, 2017 · puts выводит переданную строку и символ новой строки, а printf - генерирует выводимую строку на основании строки формата и дополнительных данных. Если коротко. …

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

  10. Como usar gets () no C++? - Stack Overflow em Português

    May 30, 2015 · Como usar gets() no C++, ao se pedir para o digitar e armazenar numa variável tipo char?