File: unix.c

package info (click to toggle)
antiword 0.37-16
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 2,236 kB
  • sloc: ansic: 27,835; perl: 174; sh: 129; php: 83; makefile: 24
file content (45 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * unix.c
 * Copyright (C) 1998-2000 A.J. van Os; Released under GPL
 *
 * Description:
 * Unix approximations of RISC-OS functions
 */

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "antiword.h"


/*
 * werr - write an error message and exit if needed
 */
void
werr(int iFatal, const char *szFormat, ...)
{
	va_list tArg;

	va_start(tArg, szFormat);
	(void)vfprintf(stderr, szFormat, tArg);
	va_end(tArg);
	fprintf(stderr, "\n");
	switch (iFatal) {
	case 0:		/* The message is just a warning, so no exit */
		return;
	case 1:		/* Fatal error with a standard exit */
		exit(EXIT_FAILURE);
	default:	/* Fatal error with a non-standard exit */
		exit(iFatal);
	}
} /* end of werr */

void
Hourglass_On(void)
{
} /* end of Hourglass_On */

void
Hourglass_Off(void)
{
} /* end of Hourglass_Off */