another macro. */
#include "charset.h"
-extern long *xmalloc (), *xrealloc ();
-
static int doprnt1 ();
/* Generate output from a format-spec FORMAT,
char fixed_buffer[20]; /* Default buffer for small formatting. */
char *fmtcpy;
int minlen;
- int size; /* Field width factor; e.g., %90d */
unsigned char charbuf[5]; /* Used for %c. */
if (format_end == 0)
if (lispstrings)
{
string = ((struct Lisp_String *)args[cnt])->data;
- tem = ((struct Lisp_String *)args[cnt])->size;
+ tem = STRING_BYTES ((struct Lisp_String *)args[cnt]);
cnt++;
}
else
case 'c':
if (cnt == nargs)
error ("not enough arguments for format string");
- tem = CHAR_STRING ((int) (EMACS_INT) args[cnt], charbuf, string);
+ tem = CHAR_STRING ((int) (EMACS_INT) args[cnt], charbuf);
+ string = charbuf;
cnt++;
string[tem] = 0;
width = strwidth (string, tem);