mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
`snprintf` returns the number of characters that would have been written had the buffer been large enough. It's a common trick to call `snprintf(nullptr, 0, ...)` to measure how large a buffer has to be. Thus the return value is not zero but fourteen. |
||
---|---|---|
.. | ||
accuracy-strtod.cpp | ||
CMakeLists.txt | ||
exec-should-not-search-current-directory.cpp | ||
memmem-tests.cpp | ||
qsort-sorts-and-copies.cpp | ||
snprintf-correctness.cpp | ||
strlcpy-correctness.cpp |