DEV Community

Discussion on: Why there is no "gets" function in C standard library?

Collapse
 
pentacular profile image
pentacular

The simple answer is that programs using gets() have undefined behavior unless the input data is as expected.