mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Add new function xzalloc(n) as a shorthand for xcalloc(1, n).
This commit is contained in:
@@ -42,6 +42,12 @@ xcalloc(size_t count, size_t size)
|
||||
return p;
|
||||
}
|
||||
|
||||
void *
|
||||
xzalloc(size_t size)
|
||||
{
|
||||
return xcalloc(1, size);
|
||||
}
|
||||
|
||||
void *
|
||||
xmalloc(size_t size)
|
||||
{
|
||||
|
Reference in New Issue
Block a user