C++ – Error 4 error C3861: ‘snprintf’: identifier not found

c++printfvisual-c++visual-studio-2008

i am running a program on win 7 via visual studio 2008

and i am getting this error:

Error 4 error C3861: 'snprintf': identifier not found

i have included stdio header…

i don't know what else it can be missing

Best Solution

Looks like on Windows, the function is prefixed with a _. Also, the function is deprecated in favour of a safer one:

http://msdn.microsoft.com/en-us/library/2ts7cx93(v=vs.80).aspx