scbuf.c
/* SINGLE LINKED LIST ROUTINES */
// create new list element of type SCREENCELL from the supplied text string
SINGLE LINKED LIST ROUTINES
create new list element of type SCREENCELL from the supplied text string
SINGLE LINKED LIST ROUTINES create new list element of type SCREENCELL from the supplied text string
SCREENCELL *newelement(SCREENCELL temp)
{
	SCREENCELL *newp;
	newp = (SCREENCELL *) malloc (sizeof(SCREENCELL));
	newp->index = temp.index;
	newp->backColor = temp.backColor;
	newp->foreColor = temp.foreColor;
        newp->toUpdate = 0;
	newp->ch = temp.ch;
        newp->next = NULL;
	return newp;
}
SCREENCELL * newelement ( SCREENCELL temp ) { SCREENCELL * newp ; newp = ( SCREENCELL * ) malloc ( sizeof ( SCREENCELL ) ) ; newp -> index = temp . index ; newp -> backColor = temp . backColor ; newp -> foreColor = temp . foreColor ; newp -> toUpdate = 0 ; newp -> ch = temp . ch ; newp -> next = NULL ; return newp ; }
SINGLE LINKED LIST ROUTINES
create new list element of type SCREENCELL from the supplied text string
SINGLE LINKED LIST ROUTINES create new list element of type SCREENCELL from the supplied text string