/* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)out.c 5.4 (Berkeley) 06/01/90"; #endif /* not lint */ # include "trek.h" /* ** Announce Device Out */ out(dev) int dev; { register struct device *d; d = &Device[dev]; printf("%s reports %s ", d->person, d->name); if (d->name[length(d->name) - 1] == 's') printf("are"); else printf("is"); printf(" damaged\n"); }