.. highlightlang:: us .. _gets: gets ==== .. index:: gets .. us.tag gets NOTREADYENGLISH The :ref:`gets` function reads a line from the Command Window and stores it in *ssInputLine*. The line consists of all characters up to and including the first newline character ("\n"). :ref:`gets` then replaces the newline character with a null character ("\0") before returning the line. .. function:: ssInputLine = gets() .. us.return **Return Value** *ssInputLine* is the input string. .. us.example **Example** :: printf("Input a string: ");s = gets();printf("Your input was: %s\n", s); .. seealso:: :ref:`printf` :sub:`id-1437485`