/* Return the number of free bytes in the sccb  */
int sclp_buffer_space(struct sclp_buffer *buffer)
/* Return the number of free bytes in the sccb  */
int sclp_buffer_space(struct sclp_buffer *buffer)
{
	int count;
	count = MAX_SCCB_ROOM - buffer->sccb->header.length;
	if (buffer->current_line != NULL)
		count -= sizeof(struct mto) + buffer->current_length;
	return count;
}