Most of the times developers are believe that sprintf is the most performance method for string copy.
But I did some small test and result as fallow.
Environment : windows 7
IDE : visual studio 2010
Programing language: Visual C++
Method:
Get the current system time.
Copied the 100 length strings to specific char buffer 100,000,000 times continually.
Get the current system time and check the...
Sunday, February 12, 2012
What is the fastest string copy function in C++ sprintf, strcpy, strncpy, strcpy_s
Posted on Sunday, February 12, 2012 by nayana
Subscribe to:
Posts (Atom)