* language.h (local_decimal_format_custom): Add prototype.

* language.c (local_decimal_format_custom):  Add function, bug
	reported by Robert R. Henry (rrh@tera.com).
This commit is contained in:
Fred Fish 1993-03-01 16:46:55 +00:00
parent 1b1b6c0249
commit 58a66e2424
3 changed files with 24 additions and 0 deletions

View file

@ -531,6 +531,21 @@ local_octal_format_custom(pre)
strcat (form, local_octal_format_suffix ());
return form;
}
/* Returns the appropriate printf format for decimal numbers. */
char *
local_decimal_format_custom(pre)
char *pre;
{
static char form[50];
strcpy (form, local_decimal_format_prefix ());
strcat (form, "%");
strcat (form, pre);
strcat (form, local_decimal_format_specifier ());
strcat (form, local_decimal_format_suffix ());
return form;
}
/* This page contains functions that are used in type/range checking.
They all return zero if the type/range check fails.