#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(char *, unsigned int, int); extern unsigned int byte_rchr(char *, unsigned int, int); extern void byte_copy(void *, unsigned int, const void *); extern void byte_copyr(void *, unsigned int, const void *); extern int byte_diff(const void *, unsigned int, const void *); extern void byte_zero(void *, unsigned int); extern void byte_fill(void *, unsigned int, int); #define byte_equal(s, n, t) (!byte_diff((s), (n), (t))) #endif