_string.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _MYSTRING_H_
  2. #define _MYSTRING_H_
  3. #include <stdlib.h>
  4. #include <stdint.h>
  5. #include <stdio.h>
  6. #include <stdbool.h>
  7. #include <stdarg.h>
  8. #include <string.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #ifndef TRUE
  13. #define TRUE true
  14. #endif
  15. #ifndef FALSE
  16. #define FALSE false
  17. #endif
  18. int _strlen(const char *str);
  19. void _strcpynum(char *dest,const char *src,uint8_t num);
  20. int _strcopy(char *str,const char *value);
  21. char *_strcat(char *dest,const char *src);
  22. char *_strcatint(char *dest, int num);
  23. int _strfindnum(char *str,char c,uint8_t num);
  24. int _strfind(char *str,char c);
  25. int _strfindchar(int count,...);
  26. int _strcount(const char *str);
  27. int _strCompare(char *str1,const char *str2);
  28. int _strstr(char *str1,const char *str2);
  29. uint8_t _get_Hex(const char c);
  30. int _HexToStr(char *data,uint8_t *byte,int size);
  31. uint32_t _get_HexToDec(char *str);
  32. float _my_atof(char *str);
  33. char _get_HexChar(uint8_t hex);
  34. int _my_atoi(char *str);
  35. uint32_t _my_atou32(char *str);
  36. int check_no_number(char *str);
  37. int check_is_number(char *str);
  38. extern void *realloc(void *mem_address, unsigned int newsize);
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif