Next: usleep Up: Others Previous: getchar

### gets

`char * gets()`
`char * gets(char * strprompt)`

Displays the Xcoral Dialog Box to get a string with the prompt strprompt ("gets ? " if strprompt is omitted). You have line editing, and the return or ok button is required to validate the input string. If you choose the cancel button, returns a string with one character (and the null terminator) of code 7. If you select the ok button without inputting a string, returns 0.

Attention Be careful, the string is allocated each time the function is called, use free() to release it.