void test( char pszstr[] ) { size_t count = strlen( pszstr ); char pszstrtmp[ ] = { 0 }; char pszsearchtmp[ ] = { 0 }; for( int i = 0; i < (int)strlen( pszstr ); i++ ) { printf( "Copying: str(%c) into strtmp(%c) - Count: %i\n", pszstr[ i ], pszstrtmp[ i ], i ); pszstrtmp[ i ] = pszstr[ i ]; } printf( "%s\n\n", pszstrtmp); } Copying: str(h) into strtmp( ) - Count: 0 Copying: str(e) into strtmp(ò) - Count: 1 Copying: str(l) into strtmp(►) - Count: 2 Copying: str(l) into strtmp(@) - Count: 3 Copying: str(o) into strtmp( ) - Count: 4 hello☺↕@