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

⟦bcc4ea5ab⟧ TextFile

    Length: 225 (0xe1)
    Types: TextFile
    Notes: UNIX file
    Names: »bread.c«

Derivation

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

TextFile

/*
 * block read
 */

#include	<flib.h>

bread(fdi, blk, db)
long blk, lseek();
unsigned char *db;
register int fdi;
{
	lseek(fdi, blk*512L, 0);
	if (read(fdi, db, BLKSIZ) != BLKSIZ)
		printf("btst: bread:  Bad read!\n");
}