From d8732c60696bbb69e2a8d8d28eed06f5eb2034a6 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 4 Jan 2017 22:25:15 -0700 Subject: [PATCH] perlapi: Add clarification for SvGROW() --- sv.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sv.h b/sv.h index e311ff2..6227d46 100644 --- a/sv.h +++ b/sv.h @@ -2013,6 +2013,9 @@ Returns a pointer to the character buffer. SV must be of type >= C. One alternative is to call C if you are not sure of the type of SV. +You might mistakenly think that C is the number of bytes to add to the +existing size, but instead it is the total size C should be. + =for apidoc Am|char *|SvPVCLEAR|SV* sv Ensures that sv is a SVt_PV and that its SvCUR is 0, and that it is properly null terminated. Equivalent to sv_setpvs(""), but more efficient. -- 1.8.3.1