mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
boot: Add xnew0
Same as xnew but initialized with zeros
This commit is contained in:
parent
ee95e86ae1
commit
09f16de6d8
@ -69,6 +69,7 @@ static inline void* xmemdup(const void *p, size_t l) {
|
||||
}
|
||||
|
||||
#define xnew(type, n) ((type *) xmalloc_multiply((n), sizeof(type)))
|
||||
#define xnew0(type, n) ((type *) xcalloc_multiply((n), sizeof(type)))
|
||||
|
||||
bool free_and_xstrdup16(char16_t **p, const char16_t *s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user