aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-10 13:07:37 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-10 13:07:37 -0700
commitf0da36b8d8f24e537bfcd297be05e8eca9fa0e35 (patch)
treecba2c74ca37015c996af631746514e317c0e3ff3 /include
parentfdc2b10dce93c806edc95eb76fdca38625c47d06 (diff)
Clarifying comment
Diffstat (limited to 'include')
-rw-r--r--include/grpc/support/alloc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpc/support/alloc.h b/include/grpc/support/alloc.h
index 327a9ff9f0..7209bec014 100644
--- a/include/grpc/support/alloc.h
+++ b/include/grpc/support/alloc.h
@@ -48,7 +48,11 @@ typedef struct gpr_allocation_functions {
void (*free_fn)(void *ptr);
} gpr_allocation_functions;
-/* malloc, never returns NULL */
+/* malloc.
+ * If size==0, always returns NULL. Otherwise this function never returns NULL.
+ * The pointer returned is suitably aligned for any kind of variable it could
+ * contain.
+ */
GPRAPI void *gpr_malloc(size_t size);
/* free */
GPRAPI void gpr_free(void *ptr);