Issue
I have a C program that uses sprintf_s
. It works fine in Windows, but when I compile my code in Linux it gives this error:
sprintf_s was not declared in this scope.
Why does this happen and how can I fix it?
Solution
It's not standard, you won't find such function on Linux.
Standard function snprintf
should have a similar semantics.
Answered By - peoro Answer Checked By - Terry (WPSolving Volunteer)