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

os: add flush method

This commit is contained in:
Justice Suh 2019-07-12 20:11:11 -04:00 committed by Alexander Medvednikov
parent 3281e44e84
commit 5d7bac2016

View File

@ -239,6 +239,10 @@ pub fn (f File) writeln(s string) {
C.fputs('\n', f.cfile) C.fputs('\n', f.cfile)
} }
pub fn (f File) flush() {
C.fflush(f.cfile)
}
pub fn (f File) close() { pub fn (f File) close() {
C.fclose(f.cfile) C.fclose(f.cfile)
} }