galloca: Add new API g_alloca0 and g_newa0

Added `g_alloca0()` which wraps `g_alloca()` and initializes
allocated memory to zeroes.

Added `g_newa0()` which wraps `g_alloca0()` in a typesafe manner.

Refreshed and tweaked by Nishal Kulkarni.
This commit is contained in:
Marc-André Lureau
2021-11-25 13:38:11 +05:30
committed by Philip Withnall
parent f8bfd73e30
commit b4631c44ad
2 changed files with 33 additions and 0 deletions

View File

@@ -1389,7 +1389,9 @@ g_mem_gc_friendly
<SUBSECTION>
g_alloca
g_alloca0
g_newa
g_newa0
<SUBSECTION>
g_memmove