so might hide memory allocation errors.
</para>
-@struct_type: the type of the elements to allocate.
-@n_structs: the number of elements to allocate.
-@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type.
+@struct_type: the type of the elements to allocate
+@n_structs: the number of elements to allocate
+@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type
<!-- ##### MACRO g_new0 ##### -->
the memory, which may have been moved.
</para>
-@struct_type: the type of the elements to allocate.
-@mem: the currently allocated memory.
-@n_structs: the number of elements to allocate.
-@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type.
+@struct_type: the type of the elements to allocate
+@mem: the currently allocated memory
+@n_structs: the number of elements to allocate
+@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type
<!-- ##### MACRO g_try_new ##### -->
If @n_structs is 0 it returns %NULL.
</para>
-@struct_type: the type of the elements to allocate.
-@n_structs: the number of elements to allocate.
-@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type.
+@struct_type: the type of the elements to allocate
+@n_structs: the number of elements to allocate
+@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type
@Since: 2.8
If @n_counts is 0 it returns %NULL.
</para>
-@struct_type: the type of the elements to allocate.
-@n_structs: the number of elements to allocate.
-@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type.
+@struct_type: the type of the elements to allocate
+@n_structs: the number of elements to allocate
+@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type
@Since: 2.8
It returns the new address of the memory, which may have been moved.
</para>
-@struct_type: the type of the elements to allocate.
-@mem: the currently allocated memory.
-@n_structs: the number of elements to allocate.
-@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type.
+@struct_type: the type of the elements to allocate
+@mem: the currently allocated memory
+@n_structs: the number of elements to allocate
+@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type
@Since: 2.8
If @n_bytes is 0 it returns %NULL.
</para>
-@n_bytes: the number of bytes to allocate.
-@Returns: a pointer to the allocated memory.
+@n_bytes: the number of bytes to allocate
+@Returns: a pointer to the allocated memory
<!-- ##### FUNCTION g_malloc0 ##### -->
If @n_bytes is 0 it returns %NULL.
</para>
-@n_bytes: the number of bytes to allocate.
-@Returns: a pointer to the allocated memory.
+@n_bytes: the number of bytes to allocate
+@Returns: a pointer to the allocated memory
<!-- ##### FUNCTION g_realloc ##### -->
Reallocates the memory pointed to by @mem, so that it now has space for
@n_bytes bytes of memory. It returns the new address of the memory, which may
have been moved. @mem may be %NULL, in which case it's considered to
-have zero-length. @n_bytes may be 0, in which case %NULL will be returned.
+have zero-length. @n_bytes may be 0, in which case %NULL will be returned
+and @mem will be freed unless it is %NULL.
</para>
-@mem: the memory to reallocate.
-@n_bytes: new size of the memory in bytes.
-@Returns: the new address of the allocated memory.
+@mem: the memory to reallocate
+@n_bytes: new size of the memory in bytes
+@Returns: the new address of the allocated memory
<!-- ##### FUNCTION g_try_malloc ##### -->
failure. Contrast with g_malloc0(), which aborts the program on failure.
</para>
-@n_bytes: number of bytes to allocate.
-@Returns: the allocated memory, or %NULL.
+@n_bytes: number of bytes to allocate
+@Returns: the allocated memory, or %NULL
@Since: 2.8
If @mem is %NULL it simply returns.
</para>
-@mem: the memory to free.
+@mem: the memory to free
<!-- ##### VARIABLE g_mem_gc_friendly ##### -->
Note that this function will not output anything unless you have
previously installed the #glib_mem_profiler_table with g_mem_set_vtable().
</para>
-
-
-