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

⟦058253935⟧ TextFile

    Length: 192 (0xc0)
    Types: TextFile
    Notes: UNIX file
    Names: »ow.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦2d53db1df⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »frankh/src/tape_drive/ow.c« 

TextFile

#include	<stdio.h>

main()
{
	register int i,fd, br;
	char buf[80];
	buf[0] = 65;

	fd = open("/dev/test", 1);

	printf("fd = %d\n", fd);

	br = write(fd, buf, 1);
	printf("bw = %d\n", br);
}