About 59 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. Why is the gets function so dangerous that it should not be used?

    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 an environment which …

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

  4. c++ - проблема с функцией gets () - Stack Overflow на русском

    Jan 2, 2018 · Это не тот код - по ссылке у вас fgets, а не gets! Вы случаем не Visual C++ 2015 или 2017 компилируете? Если заменить fgets на gets - да, эти компиляторы не компилируют - …

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

  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. Suggest an alternative for gets() function, using gcc compiler

    Jun 5, 2013 · The gets() function is defined to read input into a buffer provided by the caller, up to and including the first newline (or EOF). It does not provide any mechanism for limiting input to the size of …

  8. 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, %f, %s, etc.

  9. 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?

  10. 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 something. Rather …