date and time created 87/02/15 16:03:39 by lepreau
[unix-history] / usr / src / games / trek / out.c
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef lint
static char sccsid[] = "@(#)out.c 5.1 (Berkeley) %G%";
#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");
}