Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
935 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. spprintf.h
  5. Abstract:
  6. safer sprintf variants
  7. Author:
  8. Jay Krell (a-JayK) November 2000
  9. Revision History:
  10. --*/
  11. #pragma once
  12. #include <stdarg.h>
  13. //
  14. // _snprintf and co. do not write a terminal nul when the string just fits.
  15. // These function do.
  16. //
  17. // use instead of VsNprintf or Vsprintf
  18. // VN V
  19. void SpFormatStringVaA(PSTR Buffer, SIZE_T Size, PCSTR Format, va_list Args);
  20. // use instead of sNprintf or sprintf
  21. // N .
  22. void __cdecl SpFormatStringA(PSTR Buffer, SIZE_T Size, PCSTR Format, ...);
  23. // use instead of VsNWprintf or VsWprintf
  24. // VNW VW
  25. void SpFormatStringVaW(PWSTR Buffer, SIZE_T Size, PCWSTR Format, va_list Args);
  26. // use instead of sNWprintf or sWprintf
  27. // NW W
  28. void __cdecl SpFormatStringW(PWSTR Buffer, SIZE_T Size, PCWSTR Format, ...);
  29. NTSTATUS __cdecl SpFormatStringWToA(PSTR Buffer, SIZE_T Size, PCWSTR Format, ...);