diff options
author | Fred Fish <fnf@specifix.com> | 1993-03-01 16:46:55 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-03-01 16:46:55 +0000 |
commit | 58a66e2424c7e5a9e84c4664eb636dbb415d3de3 (patch) | |
tree | bef38372873fbfe23cb1b7bff29df26a02fbd80b /gdb/language.c | |
parent | 1b1b6c0249413d2c919a1567eab0dbea81732167 (diff) | |
download | gdb-58a66e2424c7e5a9e84c4664eb636dbb415d3de3.zip gdb-58a66e2424c7e5a9e84c4664eb636dbb415d3de3.tar.gz gdb-58a66e2424c7e5a9e84c4664eb636dbb415d3de3.tar.bz2 |
* 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).
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/language.c b/gdb/language.c index db4fb45..a58fd22 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -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. |