diff options
Diffstat (limited to 'src/error.c')
-rw-r--r-- | src/error.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/error.c b/src/error.c deleted file mode 100644 index 43df1c30..00000000 --- a/src/error.c +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved. | ||
2 | * | ||
3 | * See the LICENSE file | ||
4 | * | ||
5 | * The origin of this software must not be misrepresented, either by | ||
6 | * explicit claim or by omission. Since few users ever read sources, | ||
7 | * credits must appear in the documentation. | ||
8 | * | ||
9 | * date: Wed Oct 9 19:56:22 GMT 2002 | ||
10 | * | ||
11 | * -- Error functions | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | |||
16 | #include "error.h" | ||
17 | |||
18 | |||
19 | const char *libws_error_table[]={ | ||
20 | "Memory error", | ||
21 | "Filesystem error", | ||
22 | "Network error" | ||
23 | }; | ||
24 | |||
25 | |||
26 | void libws_error(unsigned int code, const char *fmt, ...) { | ||
27 | va_list args; | ||
28 | |||
29 | va_start(args,fmt); | ||
30 | fprintf(stderr,"%s: ",libws_error_table[code]); | ||
31 | vfprintf(stderr,fmt,args); | ||
32 | va_end(args); | ||
33 | fflush(stderr); | ||
34 | }; | ||