* Added $write-byte to ikarus.io-primitives.unsafe.ss

This commit is contained in:
Abdulaziz Ghuloum
2007-05-18 08:15:51 -04:00
parent bc41665bf3
commit 35fa003558
6 changed files with 32 additions and 2 deletions
BIN
View File
Binary file not shown.
+6 -1
View File
@@ -845,7 +845,12 @@ ikrt_open_output_file(ikp fname, ikp flagptr, ikpcb* pcb){
ikp
ikrt_write_file(ikp fd, ikp buff, ikp idx, ikpcb* pcb){
int bytes = write(unfix(fd), string_data(buff), unfix(idx));
int bytes;
if(tagof(buff) == bytevector_tag){
bytes = write(unfix(fd), buff+off_bytevector_data, unfix(idx));
} else {
bytes = write(unfix(fd), string_data(buff), unfix(idx));
}
return fix(bytes);
}