1 #ifndef lint 2 static char sccsid[] = "@(#)out.c 4.1 (Berkeley) 03/23/83"; 3 #endif not lint 4 5 # include "trek.h" 6 7 /* 8 ** Announce Device Out 9 */ 10 11 out(dev) 12 int dev; 13 { 14 register struct device *d; 15 16 d = &Device[dev]; 17 printf("%s reports %s ", d->person, d->name); 18 if (d->name[length(d->name) - 1] == 's') 19 printf("are"); 20 else 21 printf("is"); 22 printf(" damaged\n"); 23 } 24