What is the fastest way to convert int to char* string in C++?

Revision en1, by pulkitjain, 2019-12-18 19:39:26

Hi All,

I am trying to find the fastest way to convert integer directly to char* (C-string) without converting it to std::string first. I have already tried using std::to_string() function but then also i need to convert it into C-string using c_str() function. Basically an alternative for itoa in c++ for version 11 and more.

Please feel free to give your views regarding this.

Thanks and Regards
Pulkit Jain

Tags c++, strings

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English pulkitjain 2019-12-18 20:28:00 9 Tiny change: 'rsion 11** and more.\n\nPleas' -> 'rsion 11**.\n\nPleas'
en1 English pulkitjain 2019-12-18 19:39:26 518 Initial revision (published)