local/toolchest/ksh/sh/print.c
/*
 * flush the output if necessary and null terminate the buffer
 */
flush the output if necessary and null terminate the buffer
flush the output if necessary and null terminate the buffer
void p_flush()
{
	register FILE *oldfd = output;
	register char *cp;
	if(oldfd)
	{
		if((cp=(char*)(oldfd->_ptr)) > (char*)(oldfd->_base))
		{
			fflush(oldfd);
		}
		if(cp)
			*cp = 0;
	}
}
void p_flush ( ) { register FILE * oldfd = output ; register char * cp ; if ( oldfd ) { if ( ( cp = ( char * ) ( oldfd -> _ptr ) ) > ( char * ) ( oldfd -> _base ) ) { fflush ( oldfd ) ; } if ( cp ) * cp = 0 ; } }
flush the output if necessary and null terminate the buffer
flush the output if necessary and null terminate the buffer
/* leave the previous buffer as a null terminated string */