summaryrefslogtreecommitdiff
path: root/include/byte.h
blob: 388612735c9c5f55aae9e6c18e9aeae8dc2b3752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef BYTE_H
#define BYTE_H

/**
  @file byte.h
  @author djb, feh
  @source s/qmail
  @comment no declaration of argument types; too many compiler errors
*/

extern unsigned int byte_chr();
extern unsigned int byte_rchr();
extern void byte_copy();
extern void byte_copyr();
extern int byte_diff();
extern void byte_zero();
extern void byte_fill();

#define byte_equal(s, n, t) (!byte_diff((s), (n), (t)))

#endif