rendered paste body// String_Stuff.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <windows.h>#include <stdio.h>char *test( char *pszstr ){ size_t count = strlen( pszstr ); char *pszstrtmp = new char[ count ]; for( int i = 0; i < (int)count; i++ ) { printf( "Copying: str(%c) - Count: %i\n", pszstr[ i ], i ); pszstrtmp[ i ] = pszstr[ i ]; } return pszstrtmp;}int _tmain(int argc, _TCHAR* argv[]){ char *psz = test( "hellothere12" ); //Outputs: hello☺5 - (size) 7 and if I pass hellothere12 it comes hellothere12ram ♠ - (size) 17 printf( "\n%s - (size) %i \n", psz, strlen( psz ) ); return 0;}//-----------------------------------------------OutputsCopying: str(h) - Count: 0Copying: str(e) - Count: 1Copying: str(l) - Count: 2Copying: str(l) - Count: 3Copying: str(o) - Count: 4hello☺5 - (size) 7Press any key to continue . . .Copying: str(h) - Count: 0Copying: str(e) - Count: 1Copying: str(l) - Count: 2Copying: str(l) - Count: 3Copying: str(o) - Count: 4Copying: str(t) - Count: 5Copying: str(h) - Count: 6Copying: str(e) - Count: 7Copying: str(r) - Count: 8Copying: str(e) - Count: 9Copying: str(1) - Count: 10Copying: str(2) - Count: 11hellothere12ram ♠ - (size) 17Press any key to continue . . .