1 /* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)out.c 8.1 (Berkeley) 05/31/93"; 10 #endif /* not lint */ 11 12 # include "trek.h" 13 14 /* 15 ** Announce Device Out 16 */ 17 18 out(dev) 19 int dev; 20 { 21 register struct device *d; 22 23 d = &Device[dev]; 24 printf("%s reports %s ", d->person, d->name); 25 if (d->name[length(d->name) - 1] == 's') 26 printf("are"); 27 else 28 printf("is"); 29 printf(" damaged\n"); 30 } 31