File:  [Research Unix] / researchv10no / cmd / basic / bite / src / new.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.

 *	/////////////////////////////////////
 *	/////////////////////////////////////
 *	/////////////// new.c ///////////////
 *	/// J. P. Hawkins WH X4610 8C-001 ///
 *	///// Sun Aug 26 06:20:23 1979 //////
 *	/////////////////////////////////////
 *	/////////////////////////////////////

 *
 *
 * routine to clear the contents of the working storage
 */
/*   "@(#) new.c:  V 1.1  12/21/80" */

#include "bas.h"
extern char filnam[];
extern char txtbuf[];
new()
{
	filnam[0] = '\0';
	onew();
}
onew()
{
	int i;
	lbdptr=curptr=linptr=txtbuf;
	inst.thing.linno = 0;
	clear();
	expunge();	/* clear variable stack and variable symbol tables */
	for(i=0;i<4;i++)
		txtbuf[i]= '\0';
	return(0);
}

unix.superglobalmegacorp.com

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