Merge pull request #70714 from Calinou/doc-os-stdin

Improve documentation for `OS.read_string_from_stdin()`
This commit is contained in:
Rémi Verschelde 2023-01-12 09:24:47 +01:00 committed by GitHub
commit 0e4e782ada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 19 additions and 26 deletions

View file

@ -149,13 +149,9 @@ Vector<String> OS_Unix::get_video_adapter_driver_info() const {
return Vector<String>();
}
String OS_Unix::get_stdin_string(bool p_block) {
if (p_block) {
char buff[1024];
return String::utf8(fgets(buff, 1024, stdin));
}
return String();
String OS_Unix::get_stdin_string() {
char buff[1024];
return String::utf8(fgets(buff, 1024, stdin));
}
Error OS_Unix::get_entropy(uint8_t *r_buffer, int p_bytes) {