qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
gets
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The gets function reads a line from the standard input stream
     stdin and stores it in <buffer>. The line consists of all
     characters up to and including the first newline character (\n).
     The gets function then replaces the newline character with a null
     character (\0) before returning the line. In contrast, the fgets
     function retains the newline character.
 
     Return Value
 
     If successful, the gets function returns its argument. A NULL
     pointer indicates an error or end-of-file condition. Use ferror or
     feof to determine which one has occurred.
                                    -♦-