2
0

cb_libc.h 554 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * SPDX-License-Identifier: Apache-2.0
  3. *
  4. * Change Logs:
  5. * Date Author Notes
  6. * 2023-05-13 tyx first implementation
  7. */
  8. #ifndef CB_LIBC_H_
  9. #define CB_LIBC_H_
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /* string */
  14. long cb_strcmp(const char* s1, const char* s2);
  15. void* cb_memcpy(void* dst, const void* src, unsigned long count);
  16. void* cb_memset(void* dst, int c, unsigned long count);
  17. /* stdlib */
  18. void cb_srandom(unsigned int seed);
  19. int cb_random(void);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif