MCPcopy Create free account
hub / github.com/coreboot/coreboot / vsnprintf

Function vsnprintf

payloads/libpayload/libc/printf.c:770–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770int vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
771{
772 struct vsnprintf_data data = { size, 0, str };
773 struct printf_spec ps = { vsnprintf_write, &data };
774
775 /* Print 0 at end of string - fix case that nothing will be printed. */
776 if (size > 0)
777 str[0] = 0;
778
779 /* vsnprintf_write() ensures that str will be terminated by zero. */
780 return printf_core(fmt, &ps, ap);
781}
782
783int vsprintf(char *str, const char *fmt, va_list ap)
784{

Callers 4

snprintfFunction · 0.70
vsprintfFunction · 0.70
video_printfFunction · 0.50
vwprintwFunction · 0.50

Calls 1

printf_coreFunction · 0.85

Tested by

no test coverage detected