/* * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)out.c 8.1 (Berkeley) 05/31/93"; #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"); }