All pastes #835983 Raw Edit

asd

public cpp v1 · immutable
#835983 ·published 2007-12-29 03:55 UTC
rendered paste body
/*native StrToUpper(str[])native StrToLower(str[])*//*stock StrToUpper(str[]){		for(new i=0; i<strlen(str); i++)	{		new chara = str[i];		if(chara >= 'a' && chara <= 'z')		{			str[i] -= 32;		}	}	return str;}*//*StrToUpper( str[ ] ){	// Try me with the native "toupper" function.	for ( new i = 0, len = strlen( str ); i < len; i++ )		str[ i ] = toupper( str[ i ] );	return str;}*/StrToUpper( str[ ] ){	new		TmpString[ 256 ];	// Try me with the native "toupper" function.	for ( new i = 0, len = strlen( str ); i < len; i++ )		TmpString[ i ] = toupper( str[ i ] );	return TmpString;}stock StrToLower(str[]){	for(new i=0; i<strlen(str); i++)	{		new chara = str[i];		if(chara >= 'A' && chara <= 'Z')		{			str[i] += 32;		}	}	return str;}