tools: acrn-crashlog: new api in strutils

This patch provides an new api to split string by extended regexp(ere).

Tracked-On: #1254
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.com>
This commit is contained in:
Liu, Xinwu
2018-09-21 14:39:54 +08:00
committed by Xie, Nanlin
parent 6a9a46ac47
commit 48ce01a52f
2 changed files with 176 additions and 1 deletions

View File

@@ -13,5 +13,6 @@ char *strrstr(const char *s, const char *str);
char *next_line(char *buf);
char *strtrim(char *str);
int strcnt(char *str, char c);
int str_split_ere(const char *str, size_t slen,
const char *fmt, size_t flen, ...);
#endif