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
sprintf_s was not dec
sprintf_s is not part of the standard C library, and you won't be able to use it in Linux.
However, snprintf is standard and should do the same task.
snprintf