ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/utils.C
(Generate patch)

Comparing deliantra/server/common/utils.C (file contents):
Revision 1.89 by root, Mon Oct 12 14:00:57 2009 UTC vs.
Revision 1.90 by root, Thu Oct 15 21:09:32 2009 UTC

612 memcpy (dst, src, ++len); 612 memcpy (dst, src, ++len);
613 613
614 return len; 614 return len;
615} 615}
616 616
617const char * 617char *
618vformat (const char *format, va_list ap)
619{
620 static dynbuf_text buf; buf.clear ();
621 buf.vprintf (format, ap);
622 return buf;
623}
624
625char *
618format (const char *format, ...) 626format (const char *format, ...)
619{ 627{
620 static dynbuf_text buf;
621
622 buf.clear ();
623
624 va_list ap; 628 va_list ap;
625 va_start (ap, format); 629 va_start (ap, format);
626 buf.vprintf (format, ap); 630 char *buf = vformat (format, ap);
627 va_end (ap); 631 va_end (ap);
628 632
629 return buf; 633 return buf;
630} 634}
631 635

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines