File:  [Research Unix] / researchv10no / cmd / btree / prelim.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

#include "stdio.h"
char line[129];
main()
{	unsigned short n;
	for(;;) {
		fgets(line, sizeof(line), stdin);
		if(feof(stdin))
			break;
		n = strlen(line);
		n--;
		fwrite(&n, 1, sizeof(n), stdout);
		fwrite(line, 1, n, stdout);
		n = 0;
		fwrite(&n, 1, sizeof(n), stdout);
	}
}
static struct D { struct D *a; char *b;} VER = {&VER,"\n81/4/8:prelim.c\n"};
/*1011011100100111*/

unix.superglobalmegacorp.com

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