Which header file should I include for using _swprintf_s()?
Asked Answered
C

1

5

When I used _swprintf(), it said it might be unsafe and I should use _swprintf_s instead.

But when I used _swprintf_s(), it said

error C3861: '_swprintf_s': identifier not found

Which header am I missing? I

Compte answered 1/12, 2010 at 4:55 Comment(0)
G
8

It is swprintf() and swprintf_s(). No leading underscore.

Grannias answered 1/12, 2010 at 6:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.