All pastes #767274 Raw Edit

Mine

public cpp v1 · immutable
·published 2007-11-09 16:56 UTC
rendered paste body
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: 0Copying: str(e) into strtmp(ò) - Count: 1Copying: str(l) into strtmp(►) - Count: 2Copying: str(l) into strtmp(@) - Count: 3Copying: str(o) into strtmp( ) - Count: 4hello☺↕@