src/lib/message.c
int Mmsg(POOLMEM **pool_buf, const char *fmt, ...)
{
   va_list   arg_ptr;
   int len, maxlen;

   for (;;) {
      maxlen = sizeof_pool_memory(*pool_buf) - 1;
      va_start(arg_ptr, fmt);
      len = bvsnprintf(*pool_buf, maxlen, fmt, arg_ptr);
      va_end(arg_ptr);
      if (len < 0 || len >= (maxlen-5)) {
         *pool_buf = realloc_pool_memory(*pool_buf, maxlen + maxlen/2);
         continue;
      }
      break;
   }
   return len;
}
/*
 * Edit a message into a Pool Memory buffer NO file:lineno
 *  Returns: string length of what was edited.
 */
Edit a message into a Pool Memory buffer NO file:lineno
Returns: string length of what was edited.
Edit a message into a Pool Memory buffer NO file : lineno Returns : string length of what was edited .
int Mmsg(POOLMEM **pool_buf, const char *fmt, ...)
{
   va_list   arg_ptr;
   int len, maxlen;
   for (;;) {
      maxlen = sizeof_pool_memory(*pool_buf) - 1;
      va_start(arg_ptr, fmt);
      len = bvsnprintf(*pool_buf, maxlen, fmt, arg_ptr);
      va_end(arg_ptr);
      if (len < 0 || len >= (maxlen-5)) {
         *pool_buf = realloc_pool_memory(*pool_buf, maxlen + maxlen/2);
         continue;
      }
      break;
   }
   return len;
}
int Mmsg ( POOLMEM * * pool_buf , const char * fmt , ... ) { va_list arg_ptr ; int len , maxlen ; for ( ; ; ) { maxlen = sizeof_pool_memory ( * pool_buf ) - 1 ; va_start ( arg_ptr , fmt ) ; len = bvsnprintf ( * pool_buf , maxlen , fmt , arg_ptr ) ; va_end ( arg_ptr ) ; if ( len < 0 || len >= ( maxlen - 5 ) ) { * pool_buf = realloc_pool_memory ( * pool_buf , maxlen + maxlen / 2 ) ; continue ; } break ; } return len ; }
Edit a message into a Pool Memory buffer NO file:lineno
  Returns: string length of what was edited.
Edit a message into a Pool Memory buffer NO file : lineno Returns : string length of what was edited .