diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/utilities/ps2pk/basics.c |
Initial commit
Diffstat (limited to 'fonts/utilities/ps2pk/basics.c')
-rw-r--r-- | fonts/utilities/ps2pk/basics.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/fonts/utilities/ps2pk/basics.c b/fonts/utilities/ps2pk/basics.c new file mode 100644 index 0000000000..6b1842d5ea --- /dev/null +++ b/fonts/utilities/ps2pk/basics.c @@ -0,0 +1,27 @@ +/* FILE: basics.c + * PURPOSE: basic functions + * AUTHOR: Piet Tutelaers + * (see README for license) + */ + +#include "basics.h" + +/* Give up ... */ +void fatal(const char *fmt, ...) +{ va_list args; + + va_start(args, fmt); + vfprintf(stderr, fmt, args); + va_end(args); + exit(1); +} + +/* Give a message ... */ +void msg(const char *fmt, ...) +{ va_list args; + + va_start(args, fmt); + vfprintf(stderr, fmt, args); + fflush(stderr); + va_end(args); +} |