uch.h 290 B

123456789101112131415161718192021
  1. /* Include these
  2. #include <stdint.h>
  3. something with size_t defined like stddef.h or stdlib.h
  4. */
  5. typedef uint32_t Uch;
  6. typedef uint_fast8_t Ch_len;
  7. Ch_len
  8. ch_len_f(const char *str);
  9. Ch_len
  10. ch_len_b(const char *str);
  11. Ch_len
  12. ch_len(Uch ch);
  13. Uch
  14. uch(const char *str, Ch_len *len);