libc_syms.c 825 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <string.h>
  12. #include <ctype.h>
  13. #include <rtm.h>
  14. /* some export routines for module */
  15. RTM_EXPORT(strstr);
  16. RTM_EXPORT(strlen);
  17. RTM_EXPORT(strchr);
  18. RTM_EXPORT(strcpy);
  19. RTM_EXPORT(strncpy);
  20. RTM_EXPORT(strcmp);
  21. RTM_EXPORT(strncmp);
  22. RTM_EXPORT(strcat);
  23. RTM_EXPORT(strtol);
  24. RTM_EXPORT(memcpy);
  25. RTM_EXPORT(memcmp);
  26. RTM_EXPORT(memmove);
  27. RTM_EXPORT(memset);
  28. RTM_EXPORT(memchr);
  29. RTM_EXPORT(toupper);
  30. RTM_EXPORT(atoi);
  31. /* import the full stdio for printf */
  32. #if defined(RT_USING_MODULE) && defined(__MICROLIB)
  33. #error "[RT_USING_LIBC] Please use standard libc but not microlib."
  34. #endif
  35. RTM_EXPORT(puts);
  36. RTM_EXPORT(printf);