Annotation of researchv8dc/cmd/spell/hashmake.c, revision 1.1.1.1

1.1       root        1: /*     @(#)hashmake.c  1.1     */
                      2: #include "hash.h"
                      3: #include <stdio.h>
                      4: 
                      5: main()
                      6: {
                      7:        char word[30];
                      8:        long hashval;
                      9:        long h;
                     10:        hashinit();
                     11:        while(gets(word)) {
                     12:                hashval = hash(word);
                     13:                if(hashval == (1<<HASHWIDTH)-1) {
                     14:                        fprintf(stderr,"hashmake: rejecting %s\n",word);
                     15:                        continue;
                     16:                }
                     17:                printf("%.*lo\n",(HASHWIDTH+2)/3,hashval);
                     18:        }
                     19:        return(0);
                     20: }

unix.superglobalmegacorp.com

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