public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* ’ ] ' is displayed.
@ 2023-12-23 21:42 naoki ueda
  2023-12-24 14:35 ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: naoki ueda @ 2023-12-23 21:42 UTC (permalink / raw)
  To: naoki ueda via Gcc-bugs

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

#include <stdio.h>

int main(void)
{
char buffer[80];
double x = 1234.5, y = 678.9, z = -753.1, a = x * y + z;

int output_len = sprintf(buffer, "For the input values %f, %f, and %f,"
"\nthe result was %f.\n", x , y, z, a);
puts(buffer);

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ’ ] ' is displayed.
  2023-12-23 21:42 ’ ] ' is displayed naoki ueda
@ 2023-12-24 14:35 ` Jonathan Wakely
  2023-12-24 23:45   ` naoki ueda
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2023-12-24 14:35 UTC (permalink / raw)
  To: tantan19tanuki; +Cc: gcc-bugs

This mailing list is for automated emails from our bug database, not
for reporting bugs directly.

See https://gcc.gnu.org/bugs/ for how to report bugs, thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ’ ] ' is displayed.
  2023-12-24 14:35 ` Jonathan Wakely
@ 2023-12-24 23:45   ` naoki ueda
  0 siblings, 0 replies; 5+ messages in thread
From: naoki ueda @ 2023-12-24 23:45 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-bugs

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

Thanks for the tip!

2023年12月24日(日) 23:35 Jonathan Wakely <jwakely@redhat.com>:

> This mailing list is for automated emails from our bug database, not
> for reporting bugs directly.
>
> See https://gcc.gnu.org/bugs/ for how to report bugs, thanks.
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* ' ] ' is displayed.
@ 2023-12-23 21:50 naoki ueda
  0 siblings, 0 replies; 5+ messages in thread
From: naoki ueda @ 2023-12-23 21:50 UTC (permalink / raw)
  To: naoki ueda via Gcc-bugs

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

/* sprintf()関数 */
#include <stdio.h>

int main(void)
{
char buffer[80];
double x = 1234.5, y = 678.9, z = -753.1, a = x * y + z;

int output_len = sprintf(buffer, "For the input values %f, %f, and %f,"
"\nthe result was %f.\n", x , y, z, a);
puts(buffer);
/* if (output_len >= 80)
{
fprintf(stderr, "Output string overflowed by %d characters.\n"
"The variables x, y, z and a may have been corrupted:\n"
"x now contains %f, y %f, z %f, and a %f.\n",
output_len - 79, x, y, z, a);
} */
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* ' ] ' is displayed.
@ 2023-12-23 21:44 naoki ueda
  0 siblings, 0 replies; 5+ messages in thread
From: naoki ueda @ 2023-12-23 21:44 UTC (permalink / raw)
  To: naoki ueda via Gcc-bugs

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

#include <stdio.h>

int main(void)
{
char buffer[80];
double x = 1234.5, y = 678.9, z = -753.1, a = x * y + z;

int output_len = sprintf(buffer, "For the input values %f, %f, and %f,"
"\nthe result was %f.\n", x , y, z, a);
puts(buffer);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-24 23:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-23 21:42 ’ ] ' is displayed naoki ueda
2023-12-24 14:35 ` Jonathan Wakely
2023-12-24 23:45   ` naoki ueda
2023-12-23 21:44 ' " naoki ueda
2023-12-23 21:50 naoki ueda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).