/usr/include/diet/skalibs/bytestr.h is in skalibs-dev 0.47-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | /* Public domain. */
#ifndef BYTESTR_H
#define BYTESTR_H
#include "gccattributes.h"
/* for Alphas and other archs where char != 8bit */
#define T8(x) ((x) & 0xffU)
extern unsigned int byte_chr (char const *, unsigned int, int) gccattr_pure ;
extern unsigned int byte_rchr (char const *, unsigned int, int) gccattr_pure ;
extern unsigned int byte_in (char const *, unsigned int, char const *, unsigned int) gccattr_pure ;
extern void byte_copy (char *, unsigned int, char const *) ;
extern void byte_copyr (char *, unsigned int, char const *) ;
extern int byte_diff (char const *, unsigned int, char const *) gccattr_pure ;
extern void byte_zero (void *, unsigned int) ;
#define byte_equal(s, n, t) (!byte_diff((s), (n), (t)))
extern unsigned int byte_count (char const *, unsigned int, char) gccattr_pure ;
extern void case_lowers (char *) ;
extern void case_lowerb (char *, unsigned int) ;
extern void case_uppers (char *) ;
extern void case_upperb (char *, unsigned int) ;
#define case_equals(a, b) (!case_diffs((a), (b)))
#define case_equalb(a, n, b) (!case_diffb((a), (n), (b)))
extern int case_diffs (char const *, char const *) gccattr_pure ;
extern int case_diffb (char const *, unsigned int, char const *) gccattr_pure ;
extern int case_starts (char const *, char const *) gccattr_pure ;
extern int case_startb (char const *, unsigned int, char const *) gccattr_pure ;
extern unsigned int str_copy (char *, char const *) ;
extern int str_diff (char const *, char const *) gccattr_pure ;
extern int str_diffn (char const *, char const *, unsigned int) gccattr_pure ;
extern int str_diffb (char const *, unsigned int, char const *) gccattr_pure ;
extern unsigned int str_len (char const *) gccattr_pure ;
extern unsigned int str_chr (char const *, int) gccattr_pure ;
extern unsigned int str_rchr (char const *, int) gccattr_pure ;
extern int str_start (char const *, char const *) gccattr_pure ;
#define str_equal(s, t) (!str_diff((s), (t)))
extern unsigned int str_strn (char const *, unsigned int, char const *, unsigned int) gccattr_pure ;
#endif
|