public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Where is `void __wprintf_buffer()` declared in include/printf.h defined?
@ 2024-05-05 12:01 张 天夫
  2024-05-06  5:47 ` Florian Weimer
  0 siblings, 1 reply; 2+ messages in thread
From: 张 天夫 @ 2024-05-05 12:01 UTC (permalink / raw)
  To: libc-help

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

In include/printf.h there is a declaration:
```C
void __wprintf_buffer (struct __wprintf_buffer *buf, const wchar_t *format,
           va_list ap, unsigned int mode_flags);
```
I can't find its definition?

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

* Re: Where is `void __wprintf_buffer()` declared in include/printf.h defined?
  2024-05-05 12:01 Where is `void __wprintf_buffer()` declared in include/printf.h defined? 张 天夫
@ 2024-05-06  5:47 ` Florian Weimer
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2024-05-06  5:47 UTC (permalink / raw)
  To: 张 天夫 via Libc-help; +Cc: 张 天夫

* 张 天夫 via Libc-help:

> In include/printf.h there is a declaration:
> ```C
> void __wprintf_buffer (struct __wprintf_buffer *buf, const wchar_t *format,
>            va_list ap, unsigned int mode_flags);
> ```
> I can't find its definition?

The file stdio-common/vfwprintf-internal.c includes
stdio-common/vfprintf-internal.c after defining COMPILE_WPRINTF,
and this turns

  void
  Xprintf_buffer (struct Xprintf_buffer *buf, const CHAR_T *format,
                  va_list ap, unsigned int mode_flags)

into

  void
  __wprintf_buffer (struct __wprintf_buffer *buf, const wchar_t *format,
                    va_list ap, unsigned int mode_flags)

with the help of include/printf_buffer.h and
stdio-common/printf_buffer-wchar_t.h.

Thanks,
Florian


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

end of thread, other threads:[~2024-05-06  5:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-05 12:01 Where is `void __wprintf_buffer()` declared in include/printf.h defined? 张 天夫
2024-05-06  5:47 ` Florian Weimer

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).