File:  [Research Unix] / researchv9 / cmd / emacs / make_help.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

#include <stdio.h>

/* make help file for emacs.   This program converts from UNIX file
 * format to fixed length lines needed for the EMACS help file */

#define HELSIZE 128

main()
{
	register  i;
	char buf[HELSIZE+1];
	
	while (1) {
		for (i = 1; i <= HELSIZE; i++) buf[i] = 0;
		if (gets(buf) == NULL) exit(0);
		i = strlen(buf);
		buf[i-1] = buf[i-2] = 0;
		write(1,buf+1,HELSIZE);
	}
}

unix.superglobalmegacorp.com

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