









#include <string.h> but




string.h in Teeworlds code, use functions from system.h instead

str_comp replaces strcmp, memset(x, 0, y) is replaced by mem_zero(x, y)




















system.c you don't system.cpp













io_writeing what's in buf1


io_writeing the stuffio_writeing the contents into the file


buffer_len e.g.


if(abc) {
return 1;
} else {
foobar();
}





#########
W R (edited)

io_writeing from R to W

















io_write with the old buffermalloc failure isn't really a thing there


io_writeing right?

io_write was using the old_buffer how do you sync up the read_pos and write_pos to the new buffer? You also don't seem to check the return of io_write is it right to assume the entire buffer was written?
read_pos and write_pos to the new buffer by just setting read_pos to 0read_pos after it is donefwrite always writes the full number of bytes

aio structure should only be freed after both exited




async_new







