mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use fwrite() instead of loop putc
This commit is contained in:
+1
-4
@@ -20,10 +20,7 @@ printstr(mrb_state *mrb, mrb_value obj)
|
||||
str = mrb_str_ptr(obj);
|
||||
s = str->ptr;
|
||||
len = str->len;
|
||||
while (len--) {
|
||||
putc(*s, stdout);
|
||||
s++;
|
||||
}
|
||||
fwrite(s, len, 1, stdout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user