Line | |
---|
1 | /*
|
---|
2 | * Copyright (C) 1989 by Kenneth Almquist. All rights reserved.
|
---|
3 | * This file is part of ash, which is distributed under the terms specified
|
---|
4 | * by the Ash General Public License. See the file named LICENSE.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include <stdio.h>
|
---|
8 |
|
---|
9 | char *commandname;
|
---|
10 |
|
---|
11 |
|
---|
12 | void
|
---|
13 | #ifdef __STDC__
|
---|
14 | error(char *msg, ...) {
|
---|
15 | #else
|
---|
16 | error(msg)
|
---|
17 | char *msg;
|
---|
18 | {
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | fprintf(stderr, "%s: %s\n", commandname, msg);
|
---|
22 | exit(2);
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.