Commit | Line | Data |
---|---|---|
b6f0a7e4 DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
e9fb6bea KB |
3 | * All rights reserved. |
4 | * | |
b2e7427f | 5 | * %sccs.include.redist.c% |
b6f0a7e4 DF |
6 | */ |
7 | ||
e53c79e5 | 8 | #ifndef lint |
b2e7427f | 9 | static char sccsid[] = "@(#)out.c 5.4 (Berkeley) %G%"; |
e9fb6bea | 10 | #endif /* not lint */ |
e53c79e5 KM |
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 | } |