vsnprintf.h#
InputHandler vsnprintf support.
- Author
Douglas Quigg (dstroy0 dquigg123@gmail.com)
- Version
1.0
- Date
2022-10-05
- Copyright
Copyright (c) 2022
Defines
-
va_start(v, l)#
initializes va_list variable used with vsnprintf.h::va_arg and vsnprintf.h::va_end
-
va_end(v)#
allows a function with arguments that used va_start to return.
If va_end is not called after using va_start before returning from the function, the result is undefined.
-
va_arg(v, l)#
retrieves the next argument in the parameter list (va_list)
No indication when reaching the tail of arguments passed.
Functions
-
int vsnprintf(char *str, size_t size, const char *format, va_list args)#
InputHandler vsnprintf.
InputHandler vsnprintf vsnprintf ref
int vsnprintf(char* __restrict, size_t, const char* __restrict, __VALIST) _ATTRIBUTE((__format__(__printf__, 3, 0)));
- Parameters:
str – [in] pointer to a buffer where the C-string is stored
size – [in] maximum number of bytes to write into the buffer
format – [in] C string that contains a format string which follows the same specifications as
format
inprintf
printf refargs – [in] the argument list (va_list)
- Returns:
The number of bytes written to str