Next: An example of getnstr
and getch
, Previous: getch
class of functions, Up: Input functions [Contents][Index]
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.