src/stdlib/strapp.c
/*==================================
 * llstrappvf -- vsnprintf style append to string,
 * subject to length limit (including current contents)
 * handles UTF-8
 *================================*/
- vsnprintf style append to string,
subject to length limit (including current contents)
handles UTF-8
- vsnprintf style append to string subject to length limit ( including current contents ) handles UTF - 8
char *
llstrappvf (char * dest, int limit, int utf8, const char * fmt, va_list args)
{
	size_t len = strlen(dest);
	size_t n = limit-len;
	if (n < 2) 
		return dest;
	return llstrncpyvf(dest+len, n, utf8, fmt, args);
}
char * llstrappvf ( char * dest , int limit , int utf8 , const char * fmt , va_list args ) { size_t len = strlen ( dest ) ; size_t n = limit - len ; if ( n < 2 ) return dest ; return llstrncpyvf ( dest + len , n , utf8 , fmt , args ) ; }
llstrappvf -- vsnprintf style append to string,
 subject to length limit (including current contents)
 handles UTF-8
llstrappvf -- vsnprintf style append to string subject to length limit ( including current contents ) handles UTF - 8
/* must fit trailing zero */