contents   index   previous   next



Clib.gets()

syntax:

Clib.gets(str)

return:

str - buffer to hold the same string that is returned.

 

return:

string - an entire string from the keyboard, or null if there was an error.

 

description:

This method reads an entire string from the keyboard and returns it (or null if there was an error). The function will read all characters up to a newline character or EOF. If a newline character is read, it will not be included in the string.

 

see:

Clib.getchar()

 

example:

var s = Clib.gets()

 


Clib.kbhit()