使用rtthread

This commit is contained in:
ranchuan
2023-06-25 15:30:36 +08:00
parent 3604192d8f
commit cdad432f8a
41 changed files with 6047 additions and 95 deletions

50
source/soft/mystring.h Normal file
View File

@@ -0,0 +1,50 @@
#ifndef mystring_h__
#define mystring_h__
#include "list.h"
#ifdef __cplusplus
extern "C" {
#endif
const char *str_find_char_right(const char *s, char c);
const char *str_find_char_right_p(const char *s,const char *const p, char c);
const char *str_find_char_left(const char *const p,const char *s, char c);
int str_ahextoi(const char *s);
int str_atoi(const char *s);
int str_len(const char *s);
int str_cpystr(char *s1, const char *s2, char c);
list_def *str_split(const char *s,char c);/*temp_ptr*/
list_def *str_atod_list(const char *s, char c);/*temp_ptr*/
char *str_simplified(const char *str);/*temp_ptr*/
char *str_duplicate(char *p);
int str_is_print_str(const char *str,int len);
#define str_set(p,str) _str_set(&p,str)
#define str_temp(p) tappend(p,0)
void _str_set(char **p,const char *str);
#ifdef __cplusplus
}
#endif
#endif