实现读取nand的id,正在编写坏块管理算法

This commit is contained in:
ranchuan
2023-06-12 18:32:55 +08:00
parent ed44e2b9dd
commit 64db6e94bc
1385 changed files with 791640 additions and 92 deletions

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

@@ -0,0 +1,49 @@
#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_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);
#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