sprintf_s was not declared in this scope

前端 未结 6 1242
悲&欢浪女
悲&欢浪女 2021-01-01 10:28

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 dec         


        
6条回答
  •  误落风尘
    2021-01-01 11:00

    It's not standard, you won't find such function on Linux.

    Standard function snprintf should have a similar semantics.

提交回复
热议问题