]> granicus.if.org Git - postgis/commitdiff
Add comments on error return values.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 25 Mar 2010 05:09:14 +0000 (05:09 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 25 Mar 2010 05:09:14 +0000 (05:09 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5462 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/stringbuffer.c

index 17966cbbf353931f5491e25043c3d61bf26f7f41..db3823a4b2e89da9b600b68bbc1e0a3a48edd5fd 100644 (file)
@@ -160,7 +160,8 @@ void stringbuffer_copy(stringbuffer_t *dst, stringbuffer_t *src)
 
 /**
 * Appends a formatted string to the current string buffer, 
-* using the format and argument list provided.
+* using the format and argument list provided. Returns -1 on error,
+* check errno for reasons, documented in the printf man page.
 */
 static int stringbuffer_avprintf(stringbuffer_t *s, const char *fmt, va_list ap)
 {
@@ -204,6 +205,8 @@ static int stringbuffer_avprintf(stringbuffer_t *s, const char *fmt, va_list ap)
 /**
 * Appends a formatted string to the current string buffer, 
 * using the format and argument list provided.
+* Returns -1 on error, check errno for reasons, 
+* as documented in the printf man page.
 */
 int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt, ...)
 {