runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

byte.h (526B)


      1 /* Public domain. */
      2 
      3 #ifndef BYTE_H
      4 #define BYTE_H
      5 
      6 #include <stddef.h>
      7 
      8 extern unsigned int byte_chr( char* s, register size_t n, int c );
      9 extern unsigned int byte_rchr( void );
     10 extern void byte_copy( register char* to, register size_t n, register char* from );
     11 extern void byte_copyr( register char *to, register unsigned int n, register char *from );
     12 extern int byte_diff( register char* s, register size_t n, register char* t );
     13 extern void byte_zero( void );
     14 
     15 #define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
     16 
     17 #endif