mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Introduce os::native_fputc() abstraction layer for File.write_byte() (#1440)
Introduce os::native_fputc() abstraction layer for File.write_byte()
This commit is contained in:
@@ -76,7 +76,7 @@ fn void! File.memopen(File* file, char[] data, String mode)
|
||||
*/
|
||||
fn void! File.write_byte(&self, char c) @dynamic
|
||||
{
|
||||
if (!libc::fputc(c, self.file)) return IoError.EOF?;
|
||||
return os::native_fputc(c, self.file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user