How to read a string along with special characters and pass that into an pointer.
I have a string like T_411_c which should be read from console window and have in a string so that i can pass it to some others API's which requires that? I need C code. reply ASAP.
How to read a string from console window which can also contain special characeters like _(underscore) also?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Nov 17, 2011, 4:22 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Nov 17, 2011, 10:29 AM EST
Reading a string like T_411_c requires no special code; it is very easy, just use any typical code such as what Vulpes shows. If however you need (for example) "£" then the problem is not your source code; you need to change the font used by the console window. Depending on what characters you need, you might need to change your program to use Unicode.