use fwrite() instead of loop putc

This commit is contained in:
Yukihiro Matsumoto
2012-07-17 23:50:19 +09:00
parent 36664174cb
commit 1cffba6ae1
+1 -4
View File
@@ -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);
}
}