]>
Commit | Line | Data |
---|---|---|
1 | /* $Id$ */ | |
2 | ||
3 | #include <stdio.h> | |
4 | #include <moira.h> | |
5 | ||
6 | #define SEP_CHAR ('|') | |
7 | ||
8 | void do_backups(char *prefix); | |
9 | void do_restores(char *prefix); | |
10 | ||
11 | void dump_int(FILE *f, int n); | |
12 | void dump_str(FILE *f, char *str); | |
13 | #define dump_nl(f) { if (putc('\n', f) < 0) wpunt(); } | |
14 | #define dump_sep(f) { if (putc(SEP_CHAR, f) < 0) wpunt(); } | |
15 | ||
16 | int parse_int(FILE *f); | |
17 | void parse_str(FILE *f, char *buf, int maxlen); | |
18 | void parse_sep(FILE *f); | |
19 | void parse_nl(FILE *f); | |
20 | ||
21 | void wpunt(void); | |
22 | void punt(char *msg); | |
23 | void dbmserr(void); | |
24 | void safe_close(FILE *stream); | |
25 | FILE *open_file(char *prefix, char *suffix); | |
26 | char *endtrim(char *save); |