Next: An example of <code>getnstr</code> and <code>getch</code>, Previous: <code>getch</code> class of functions, Up: Input functions
getnstr
The getnstr
procedure is used to get strings from the terminal.
In essence, it performs the same task as would be achieved by a series
of calls to getch
until a <NL>, <CR>, or <EOF> is
received. The resulting string of characters is returned. The
procedure always takes a length parameter which is the maximum length
of string that it will allow to be input.