File: byte.h

package info (click to toggle)
pcaputils 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: ansic: 2,945; sh: 44; makefile: 38
file content (13 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef RSEUTIL_BYTE_H
#define RSEUTIL_BYTE_H

int byte_diff(const void *, unsigned int, const void *);
unsigned int byte_chr(const char *s, unsigned int n, int c);
unsigned int byte_rchr(const char *s, unsigned int n, int c);
void byte_copy(void *to, unsigned int n, const void *from);
void byte_copyr(void *to, unsigned int n, const void *from);
void byte_zero(void *, unsigned int);

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

#endif