Code:
char* upper( char* str){ int length = strlen(str); char* string_new = ( char* )malloc(sizeof( int ) *( 256 ) ); int i; printf( " This is the original sentence : %s \n" , str ); for( i = 0 ; i < length ; i++ ){ if( str[i] >= 97 && str[i] <= 122 ){ string_new[i] = str[i] - 32 ; }
Leave a comment: