Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/alloc/byte.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#ifndef BYTE_H
#define BYTE_H

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

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

#endif

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].