Function rurtle::readline::readline
[−]
[src]
pub fn readline(prompt: &str) -> Option<String>
Display the given prompt and return the input line. If readline encounters
an EOF, None
is returned.
The input data is treated as valid UTF-8 data. Errors during the conversion are silently swallowed.
The underlying malloc()
'd buffer that readline()
returns is free()
'd
and the converted owned String
is returned.
Panics
This function panics if the given prompt contains nul-bytes ('\0')