mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Fix write_entire_file
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ write_entire_file :: proc(name: string, data: []byte, truncate := true) -> (succ
|
||||
defer close(fd);
|
||||
|
||||
bytes_written, write_err := write(fd, data);
|
||||
return write_err != 0;
|
||||
return write_err == 0;
|
||||
}
|
||||
|
||||
write_ptr :: proc(fd: Handle, data: rawptr, len: int) -> (int, Errno) {
|
||||
|
||||
Reference in New Issue
Block a user