File: misc.h

package info (click to toggle)
wipe 0.24-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 468 kB
  • sloc: ansic: 1,925; makefile: 93; perl: 85; sh: 27
file content (33 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (3)
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
/* wipe
 * 
 * by Berke Durak
 *
 * General-purpose miscellaneous routines: debugging, etc.
 *
 */

#ifndef MISC_H
#define MISC_H

#include <stdlib.h>

#define ERF_MASK 0x0000ffff
#define ERF_EXIT 0x80000000
#define ERF_RET0 0x40000000
#define ERF_ERN  0x20000000

int errorf (unsigned long e, char *fmt, ...);
void informf (char *fmt, ...);
char *msprintf (char *fmt, ...);
void *xmalloc (size_t l);

#ifdef DEBUG
void debug_pf (char *fmt, ...);
#define debugf(x, y...) debug_pf(x,## y)
#else
#define debugf(x, y...)
#endif

#endif

/* vim:set sw=4:set ts=8: */