1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: add os.open_stdin/0 and os.File.get_line/0

This commit is contained in:
Delyan Angelov
2020-09-09 19:37:38 +03:00
parent 67cc515e74
commit ce6d2759f5
3 changed files with 80 additions and 1 deletions

View File

@ -928,7 +928,7 @@ pub fn executable() string {
eprintln('os.executable() failed at reading /proc/curproc/exe to get exe path')
return executable_fallback()
}
return result.vstring_with_len(count)
return unsafe { result.vstring_with_len(count) }
}
$if dragonfly {
mut result := vcalloc(max_path_len)