|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: P T
Length: 635 (0x27b) Types: TextFile Names: »PutBlk.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Adventure/src/kio/PutBlk.c«
/* ** Copyright (c) 1985 Ken Wellsch ** ** Permission is hereby granted to all users to possess, use, copy, ** distribute, and modify the programs and files in this package ** provided it is not for direct commercial benefit and secondly, ** that this notice and all modification information be kept and ** maintained in the package. ** */ #include "kio.h" int PutBlk (b) int b ; { long int loc ; extern long int MapBlk() ; loc = MapBlk (b) ; if ( loc == ERROR ) return (ERROR) ; (void) lseek (kfd,loc,0) ; if ( write (kfd,&Iblk,sizeof(Iblk)) != sizeof(Iblk) ) return (ERROR) ; return (b) ; }