WRITE_BUF_SIZE
char buf[WRITE_BUF_SIZE];
register char *buf_ptr = buf+WRITE_BUF_SIZE; // End of buf.
int buf_len = buf+WRITE_BUF_SIZE - buf_ptr;