mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
kconfig: add xstrdup() helper
We already have xmalloc(), xcalloc(), and xrealloc((). Add xstrdup() as well to save tedious error handling. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
6c49f359ca
commit
cd81fc82b9
6 changed files with 17 additions and 5 deletions
|
@ -115,6 +115,7 @@ int file_write_dep(const char *name);
|
|||
void *xmalloc(size_t size);
|
||||
void *xcalloc(size_t nmemb, size_t size);
|
||||
void *xrealloc(void *p, size_t size);
|
||||
char *xstrdup(const char *s);
|
||||
|
||||
struct gstr {
|
||||
size_t len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue