From 1fa4e15f7e935b06f1fc6bb3613ab1eab7028c61 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 23 Jan 2015 12:00:11 -0800 Subject: [PATCH] Add define --- include/grpc/support/string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/grpc/support/string.h b/include/grpc/support/string.h index 2ce19036f2e..71bd3f84e30 100644 --- a/include/grpc/support/string.h +++ b/include/grpc/support/string.h @@ -60,6 +60,9 @@ char *gpr_hexdump(const char *buf, size_t len, gpr_uint32 flags); int gpr_parse_bytes_to_uint32(const char *data, size_t length, gpr_uint32 *result); +/* minimum buffer size for calling ltoa */ +#define GPR_LTOA_MIN_BUFSIZE (3 * sizeof(long)) + /* Convert a long to a string in base 10; returns the length of the output string (or 0 on failure) */ int gpr_ltoa(long value, char *output);