View Full Version : Sprintf question
vefatica
2009-04-19, 21:16
Sprintf seems to quietly fail (with no bad consequences) if it's first argument (LPTSTR pszTarget) is NULL. Is that so? I'd like to take advantage of that behavior.
vefatica wrote:
> Sprintf seems to quietly fail (with no bad consequences) if it's first argument (LPTSTR pszTarget) is NULL. Is that so? I'd like to take advantage of that behavior.
It is *not* so. Depending on the other arguments, it will quietly fail,
noisily fail, or explode and kill everything in the neighborhood.
Rex Conn
JP Software
vBulletin® v3.8.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.