-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbyte.h
25 lines (22 loc) · 781 Bytes
/
byte.h
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
/*
* $Log: byte.h,v $
* Revision 1.2 2024-04-22 07:58:08+05:30 Cprogrammer
* updated prototypes for byte_copy, byte_copyr
*
* Revision 1.1 2014-09-01 20:05:17+05:30 Cprogrammer
* Initial revision
*
*
*/
#ifndef BYTE_H
#define BYTE_H
unsigned int byte_chr(char *, unsigned int, int);
unsigned int byte_rchr(char *, unsigned int, int);
unsigned int byte_cspn(char *, unsigned int, char *);
unsigned int byte_rcspn(char *, unsigned int, char *);
void byte_copy(register char *, unsigned int, const char *);
void byte_copyr(register char *, unsigned int, const char *);
int byte_diff(char *, unsigned int, char *);
void byte_zero(char *, unsigned int);
#define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
#endif