[Mesa-dev] [PATCH mesa 09/13] util: use standard name for sprintf()
Emil Velikov
emil.l.velikov at gmail.com
Wed Nov 21 14:34:32 UTC 2018
On 2018/11/20, Eric Engestrom wrote:
> static inline void
> PRINTFLIKE(2, 3)
> util_sprintf(char *str, const char *format, ...)
The docs [1] seem pretty clear that:
a) overlap results in undefined behaviour, and
b) the function returns the correct value
HTH
Emil
[1] https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/sprintf-sprintf-l-swprintf-swprintf-l-swprintf-l?view=vs-2017
More information about the mesa-dev
mailing list