Post 2946545 by dax@niu.moe
 (DIR) More posts by dax@niu.moe
 (DIR) Post #2946171 by prydt@niu.moe
       2019-01-14T00:13:09Z
       
       0 likes, 0 repeats
       
       so I've heard sprintf isn't that efficient
       
 (DIR) Post #2946201 by wowaname@anime.website
       2019-01-14T00:14:16.346000Z
       
       0 likes, 0 repeats
       
       @prydt yeah it isnt good for marathons; you want jogf for that
       
 (DIR) Post #2946208 by wowaname@anime.website
       2019-01-14T00:14:37.770137Z
       
       0 likes, 0 repeats
       
       @prydt jokes aside, i dont like the printf suite of functions
       
 (DIR) Post #2946452 by prydt@niu.moe
       2019-01-14T00:23:46Z
       
       0 likes, 0 repeats
       
       @wowaname anything you prefer to them?
       
 (DIR) Post #2946522 by wowaname@anime.website
       2019-01-14T00:26:54.406028Z
       
       0 likes, 0 repeats
       
       @prydt interpolation/concatenation of some sort. the three issues i have with c's printf family of functions:1. the % escapes aren't immediately obvious, and they're limited to a few types, and they have gotchas (like %s aligning with unicode strings)2. most of the time, the format string is interpreted at run time, causing a small performance loss3. printf introduces another class of bugs to c programs
       
 (DIR) Post #2946545 by dax@niu.moe
       2019-01-14T00:27:45Z
       
       0 likes, 0 repeats
       
       @prydt its generally better to use snprintf, so you can specify a max size to put in the bufferthis will prevent you from accidentally overflowing it later ^^