mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
*char => charptr everywhere
This commit is contained in:
@@ -83,7 +83,7 @@ pub fn exec(cmd string) ?Result {
|
||||
}
|
||||
buf := [1000]byte
|
||||
mut res := ''
|
||||
for C.fgets(*char(buf), 1000, f) != 0 {
|
||||
for C.fgets(charptr(buf), 1000, f) != 0 {
|
||||
res += tos(buf, vstrlen(buf))
|
||||
}
|
||||
res = res.trim_space()
|
||||
|
||||
Reference in New Issue
Block a user