Make printf safe

IchorDev zxinsworld at gmail.com
Wed Jul 17 17:24:15 UTC 2024


On Wednesday, 17 July 2024 at 09:20:23 UTC, Nick Treleaven wrote:
> The idea is to make certain calls of `printf` safe when the 
> first argument is a string literal:
> ```
> char[] s;
> printf("%s\n", s);
> ```
> See https://forum.dlang.org/post/v775k1$1tmj$1@digitalmars.com.

And the function will still perform pointer arithmetic.


More information about the dip.ideas mailing list