DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦539e1121d⟧ TextFile

    Length: 643 (0x283)
    Types: TextFile
    Notes: UNIX file
    Names: »spellin.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦f4b8d8c84⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »cmd/spell/spellin.c« 

TextFile

/*
 * Simply write words from standard
 * input (must be sorted) to standard
 * output in compressed form.  The
 * functionality is different than the
 * hashed version of spell. The assumption
 * is that you can sort -m each of the
 * dictionaries and always normally stored
 * word lists as well.
 */

#include <stdio.h>

char	word[100];

main(argc, argv)
char *argv[];
{
	if (argc > 1)
		usage();
	init();
	while (gets(word) != NULL)
		putword(word, stdout);
	fflush(stdout);
	if (ferror(stdout)) {
		fprintf(stderr, "spellin: I/O error on output\n");
		exit(1);
	}
	exit(0);
}

usage()
{
	fprintf(stderr, "Usage:  spellin\n");
	exit(1);
}