First page Back Continue Last page Graphics
The “gets” Function (cont.)
Always gets its data from an external source (stdin), which is rarely secure.
Has no facility to check the buffer’s length.
Is so dangerous, many modern linkers issue a warning if it is referenced.
- On *BSD systems – runtime warning.
Use “fgets( buffer, buff_size, stdin);” for identical results with boundaries checking.