slibc
|
Contains overloaded templates for some _s-functions defined in stdio.h. More...
Go to the source code of this file.
Functions | |
template<rsize_t n> | |
int | sprintf_s (char(&s1)[n], const char *restrict format,...) |
This function provides for fomatted output into buffer s while taking into account the size of s. | |
template<rsize_t n> | |
int | snprintf_s (char(&s1)[n], const char *restrict format,...) |
This function provides for fomatted output into buffer s while taking into account the size of s. |
Contains overloaded templates for some _s-functions defined in stdio.h.
Usage of these templates is only possible in C++. For more information please consult the documentation in string_templates_.hpp
int snprintf_s | ( | char(&) | s1[n], |
const char *restrict | format, | ||
... | |||
) |
This function provides for fomatted output into buffer s while taking into account the size of s.
For statically allocated destination buffers this C++ template function automatically deducts snprintf' size argument n.
[out] | s1 | The destination buffer |
[in] | format | format string (equal to printf) |
[in] | ... | variable amount of parameters which are treated according to the specified format string. |
References vsnprintf_s().
int sprintf_s | ( | char(&) | s1[n], |
const char *restrict | format, | ||
... | |||
) |
This function provides for fomatted output into buffer s while taking into account the size of s.
For statically allocated destination buffers this C++ template function automatically deducts sprintf' size argument n.
[out] | s1 | The destination buffer |
[in] | format | format string (equal to printf) |
[in] | ... | variable amount of parameters which are treated according to the specified format string. |
References vsprintf_s().