Skip to content

Commit 4932e8d

Browse files
committed
mem: Improve documentation.
1 parent e740c79 commit 4932e8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/csnip/mem.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ void csnip_mem_aligned_free(void* mem);
7272
*
7373
* @param ptr
7474
* The lvalue to assign to. This must be a pointer type,
75-
* and the per-object size allocated is sizeof(*ptr).
75+
* and the per-object size allocated is sizeof(*ptr). If
76+
* the allocation fails, a NULL value will be written into
77+
* the, in addition to the error being returned or
78+
* processed according to the err argument.
7679
*
7780
* @param err
7881
* Error return; accepts the special _ and error_ignore

0 commit comments

Comments
 (0)