Annotation of researchv9/cmd/emacs/make_help.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: 
        !             3: /* make help file for emacs.   This program converts from UNIX file
        !             4:  * format to fixed length lines needed for the EMACS help file */
        !             5: 
        !             6: #define HELSIZE 128
        !             7: 
        !             8: main()
        !             9: {
        !            10:        register  i;
        !            11:        char buf[HELSIZE+1];
        !            12:        
        !            13:        while (1) {
        !            14:                for (i = 1; i <= HELSIZE; i++) buf[i] = 0;
        !            15:                if (gets(buf) == NULL) exit(0);
        !            16:                i = strlen(buf);
        !            17:                buf[i-1] = buf[i-2] = 0;
        !            18:                write(1,buf+1,HELSIZE);
        !            19:        }
        !            20: }

unix.superglobalmegacorp.com

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