mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
fmt.String_Buffer, Fix issue #44, Tweak overloading rules
This commit is contained in:
@@ -109,6 +109,9 @@ close :: proc(fd: Handle) {
|
||||
win32.CloseHandle(cast(win32.Handle)fd);
|
||||
}
|
||||
|
||||
write_string :: proc(fd: Handle, str: string) -> (int, Errno) {
|
||||
return write(fd, cast([]byte)str);
|
||||
}
|
||||
write :: proc(fd: Handle, data: []byte) -> (int, Errno) {
|
||||
if len(data) == 0 {
|
||||
return 0, ERROR_NONE;
|
||||
|
||||
Reference in New Issue
Block a user