File:  [Research Unix] / researchv10no / cmd / basic / bite / src / put.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

/* Copyright Bell Telephone Laboratories Whippany, N.J.

 *	*********************************************
 *	*********************************************
 *	*** INSERT A LINE INTO THE PROGRAM BUFFER ***
 *	******** R. B. Drake WH 8C-005 X4163 ********
 *	********* Sun Aug 26 11:16:53 1979 **********
 *	*********************************************
 *	*********************************************

*/
/*   "@(#) put.c:  V 1.1  12/21/80" */

/* Called by "bed" */
/* in the case of line insertion or replacement, the task of writting
 * the new line into the program txtbuf is the same and can be handled
 * by a common routine "put" */
#include "bas.h"
put()
{
int i;
		for(i=0;i<4;i++)
			*curptr++=local.byte[i];
		expr = curptr;
		for(i=0;linbuf[i] !=0;i++)
			*curptr++=linbuf[i];
		*curptr++='\0';
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.